Loading ...
Sorry, an error occurred while loading the content.

How to change the default namespace type?

Expand Messages
  • xGunneRx
    I m trying to override the default namespace tag and I could use some help. My code: $self- {som} = $self- {soap}- SetConfig( # Generate body
    Message 1 of 1 , Mar 11, 2004
    • 0 Attachment
      I'm trying to override the default namespace tag and I could use some
      help. My code:

      <snip>
      $self->{som} = $self->{soap}->SetConfig(

      # Generate body

      SOAP::Data->type( 'tns:ConfigData' )->name(
      'CfgData' => \SOAP::Header->value(

      SOAP::Data->type( 'string' )->name( 'SessionID' )->value(
      $session_id ),

      SOAP::Data->type( 'long' )->name( 'ConfigID' )->value( $config_id ),

      More data stuffs...
      );

      </snip>

      The problem is that it generates this tag:

      <namesp3:SetConfig xmlns:namesp3="http://url/to/file.wsdl">

      but I want it get ride of the namesp3 and have it as:

      <tns:SetConfig>

      (ditching the xmlns tag would be nice too)

      Any help is greatly appericiated!
      TIA! :)
    Your message has been successfully submitted and would be delivered to recipients shortly.