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

Serialize complex type

Expand Messages
  • rvanveen_nl
    How can I serialize complex types in soap lite (using wsdl). The message should look like this. (The Wsdl has defined types such as Metrics.)
    Message 1 of 1 , Feb 4, 2008
    • 0 Attachment
      How can I serialize complex types in soap lite (using wsdl).

      The message should look like this.
      (The Wsdl has defined types such as Metrics.)

      <message>
      <logtext>Any text </logtext>
      <metrics>
      <name>foo<value>bar
      <name>foo<value>bar
      ....
      .....
      </metrics>
      </message>


      Code (parts of it):

      use SOAP::Lite;
      import SOAP::Data 'name';
      ......
      ....
      $service=SOAP::Lite -> service($wsdlUrl) ;

      my $metrics=name('metrics' =>
      name("elem1" =>
      name("name" => 'foo1'),
      name("value" => 'bar1')
      ),
      name("elem2" =>
      name("name" => 'foo2'),
      name("value" => 'bar2')
      )
      )->type('Metrics')
      ;

      $res=$service->batchRegisterStarted($interfaceCode,$metrics) ;


      Roland.
    Your message has been successfully submitted and would be delivered to recipients shortly.