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

6100sending xsd:complexType in SOAP request

Expand Messages
  • huberhans90
    Feb 1, 2008
      Hello,

      i have the following problem: I built the stubcode of the Amazon web
      services via "stubmaker.pl
      http://soap.amazon.com/schemas2/AmazonWebServices.wsdl". This WSDL
      requires complex types submitted in a request. I tried something like

      -------------------------------------------
      my $ds = new AmazonSearchService;
      my @complextype = (SOAP::Data->name("author" => "Mann"),
      SOAP::Data->name("page" => "1"),
      SOAP::Data->name("mode" => "just"),
      SOAP::Data->name("tag" => "a"),
      SOAP::Data->name("type" => "try"),
      SOAP::Data->name("devtag" => "...")
      );
      $som = $ds->AuthorSearchRequest(@complextype);
      -------------------------------------------

      to embed a complex type into the call; but what happens is that the
      types are added after the call:

      -------------------------------------------
      ...<soap:Body><typens:AuthorSearchRequest><AuthorSearchRequest
      xsi:nil="true" xsi:type="typens:AuthorRequest" /><page
      xsi:type="xsd:int">1</page><mode xsi:type="xsd:string">just</mode><tag
      xsi:type="xsd:string">a</tag><type
      xsi:type="xsd:string">try</type><devtag
      xsi:type="xsd:string">...</devtag></typens:AuthorSearchRequest></soap:Body>...
      -------------------------------------------

      does anybody know how to pass complex types in a method call?

      Thanks in advance,
      Peter
    • Show all 5 messages in this topic