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

Re: [soaplite] SOAP:Lite Client/C++ gSOAP Server problem

Expand Messages
  • Duncan Cameron
    ... You probably want to pass a reference to an array not an array, use something like: my $result = $response- echoStringArray(SOAP::Data - name( __ptr =
    Message 1 of 2 , Apr 15 1:48 PM
    • 0 Attachment
      On 2002-04-14 diafree2001 (diafree2001@...) wrote:

      >I have been trying to pass arrays of strings between a SOAP:Lite
      >client and a gSOAP server. I don't get a response. Can someone
      >help? I am expecting an echo of both strings passed in...
      >This is the relevant client code:
      >
      >
      >use SOAP::Lite;
      >my $response = SOAP::Lite->uri('this is where the uri goes')
      > ->on_action(sub{sprintf '""'})
      > ->proxy('http://this is where the proxy goes');
      >
      >my @arr = ("Fname", "Lname");
      >my $result = $response->echoStringArray(SOAP::Data->name('__ptr' =>
      >@arr)->type('Array')->uri('this is where the uri goes'));
      >
      You probably want to pass a reference to an array not an array, use something like:

      my $result = $response->echoStringArray(SOAP::Data
      ->name('__ptr' => \@arr)
      ->type('Array')
      ->uri('this is where the uri goes')
      );

      If you turn-on trace then you'll be able to see the SOAP packet which is generated
      and to confirm that it's what you expect:

      use SOAP::Lite +trace => transport;


      Regards.
      Duncan Cameron
    Your message has been successfully submitted and would be delivered to recipients shortly.