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

A few simple SOAP::Lite/WSDL questions

Expand Messages
  • Shade_Jon
    1. How can I see the XML that I am trying to produce? During debugging is fine. E.g. if I run: my $som = SOAP::Lite - service( http://someservice/...); my
    Message 1 of 1 , Jun 19, 2003
    View Source
    • 0 Attachment
      1. How can I see the XML that I am trying to produce? During
      debugging is fine. E.g. if I run:

      my $som = SOAP::Lite -> service('http://someservice/...);
      my $res = $som->Method(
      SOAP::Data->name(
      "var1" => [
      SOAP::Data->name(
      "var2" => \SOAP::Data->value(
      SOAP::Data->name("Age" => 29),
      SOAP::Data->name("Name" => "John")
      )
      ),
      SOAP::Data->name(
      "var2" => \SOAP::Data->value(
      SOAP::Data->name("Age" => 30),
      SOAP::Data->name("Name" => "Jane")
      )
      )
      ]
      )
      );
      print $res;

      How can I see what's going on?


      2. Speaking of which, what IS going on? There doesn't seem to be any
      clear description of how to produce:

      <a><b>c</b><d /></a>

      <a><b c="d"><e>f</e><e>g</e></b></a>

      ...

      Etc.. When Do I use []'s and when do I use ()'s? What is the
      difference between producing a hash, or an array, or a list? When do
      I use SOAP::Data->name, SOAP::Data->value, and SOAP::Data->type? Do I
      ever need to use SOAP::Struct?

      A nice and clear document on producing complex structures would be
      good. Is there one?


      3. If I already have a complete SOAP request in XML form (e.g.
      <SOAP ...><a><b> ...</b></a></SOAP> or whatever), how can I send that
      using SOAP::Lite?

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