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

3424Creating client SOAP request with not too complex structure

Expand Messages
  • B
    Mar 17, 2004
      Hi, how can I create the following request with SOAP::Lite?

      <m:getAvailableFieldNames xmlns:m="v2"
      <reportOptions xsi:type="m0:ReportOptions">
      <dataSource xsi:type="xsd:string">MyDataSourceString</dataSource>

      My attempt (that fails) is:
      my $fields = SOAP::Lite
      -> service ("http://$server/services/v2/$wsdl")
      -> getAvailableFieldNames( SOAP::Data->name(dataSource => "$ds") ) ;

      which produces:
      <namesp1:getAvailableFieldNames xmlns:namesp1="v2">
      <dataSource xsi:type="xsd:string">MyDataSourceString</dataSource>
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
      Server Error

      I've read lots of SOAP::Lite documentation etc, but can't seem to
      figure out how to use more complex objects...

      Any help appreciated,
    • Show all 2 messages in this topic