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

Re: changing the namespace for SOAP::Data objects

Expand Messages
  • Eric Promislow
    Something like this should do it: $soapObj = SOAP::Lite- new (... uri = http://com.test/wsdl/ZoneEditWS ); ... $soapObj- call( method = $beanarray); -
    Message 1 of 2 , Aug 26, 2002
    • 0 Attachment
      Something like this should do it:

      $soapObj = SOAP::Lite->new (... 'uri' => 'http://com.test/wsdl/ZoneEditWS');
      ...
      $soapObj->call('method' => $beanarray);

      - Eric

      >
      > Date: Fri, 23 Aug 2002 16:06:42 -0000
      > From: "calinm" <calinm@...>
      > Subject: changing the namespace for SOAP::Data objects
      >
      > Hello,
      >
      > How do I change the namespace of a SOAP::Data object? I need it in
      > another namespace than http://namespaces.soaplite.com/perl.
      >
      > Thanks a lot,
      >
      > Calin
      >
      > The code and the bad XML follow.
      >
      > $m1 = SOAP::Data->new()->name('m1')->type('string')
      > ->value('SampleString');
      > $m2 = SOAP::Data->new()->name('m2')->type('int')
      > ->value(2222);
      > $bean = SOAP::Data->new()
      > ->value({m1 => $m1, m2 => $m2});
      > $bean->type('Bean1');
      >
      > $beanarray = SOAP::Data->new();
      > $beanarray->value([$bean,$bean,$bean]);
      >
      > I don't want the objects in http://namespaces.soaplite.com/perl I
      > want them all in http://com.test/wsdl/ZoneEditWS.
      > [... soap msg deleted]
    Your message has been successfully submitted and would be delivered to recipients shortly.