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

3427Re: Creating client SOAP request with not too complex structure

Expand Messages
  • bjorn_svensson
    Mar 17 3:28 PM
    • 0 Attachment
      The answer

      -> getAvailableFieldNames(SOAP::Data->name("reportOptions" =>
      \SOAP::Data->name("dataSource" => $ds)))

      was found at
      http://soapenv.org/article.pl?sid=02/02/11/1740229&mode=thread

      A great how-to for creating complex objects. Maybe the link will help
      more people...



      --- In soaplite@yahoogroups.com, "B" wrote:
      > Hi, how can I create the following request with SOAP::Lite?
      >
      > ...
      > <m:getAvailableFieldNames xmlns:m="v2"
      > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      > <reportOptions xsi:type="m0:ReportOptions">
      > <dataSource
      xsi:type="xsd:string">MyDataSourceString</dataSource>
      > </reportOptions>
      > </m:getAvailableFieldNames>
      > ...
      > My attempt (that fails) is:
      > my $fields = SOAP::Lite
      > -> service ("http://$server/services/v2/$wsdl")
      > -> getAvailableFieldNames( SOAP::Data->name(dataSource => "$ds") ) ;
      ...
    • Show all 2 messages in this topic