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

SoapAction

Expand Messages
  • jared.pohl
    Hi Guys, Im still having problems with my soap request, it seems like its formed well but i ve noticed in when tracing it, the request made is different to
    Message 1 of 2 , Dec 2, 2009
    • 0 Attachment
      Hi Guys,

      Im still having problems with my soap request, it seems like its formed well but i've noticed in when tracing it, the request made is different to what is probably expected:

      Looking for a standard soap request (from IBM) we get the following:

      POST /EndorsementSearch HTTP/1.1
      Host: www.snowboard-info.com
      Content-Type: text/xml; charset="utf-8"
      Content-Length: 261
      SOAPAction: "http://www.snowboard-info.com/EndorsementSearch"


      I've noticed when looking through the trace output to terminal, i see that the soapaction generated is of the form "http://www.snowboard-info.com/#EndorsementSearch"

      How do you remove # from the soapaction header?

      The soap::lite code i've used is as follows:

      use SOAP::Lite (+trace => [qw(transport debug parameters)]);

      my $proxy = SOAP::Lite->proxy('http:/localhost');
      $proxy->readable(1);
      $proxy->autotype(0);
      $proxy->uri("http://www.betfair.com/publicapiv3BFGlobalService/");

      my $response = $proxy->call("login",
      SOAP::Data->name('request')->value(
      \SOAP::Data->value(
      SOAP::Data->name('locationId')->value(0)->attr( { xmlns =>
      "" }),
      SOAP::Data->name('password')->value('bfpassword')->attr( {
      xmlns => "" }),
      SOAP::Data->name('productId')->value(82)->attr( { xmlns =>
      "" }),
      SOAP::Data->name('username')->value('bfusername')->attr( {
      xmlns => "" }),
      SOAP::Data->name('vendorSoftwareId')->value(0)->attr( {
      xmlns => "" }),
      )
      )
      );
    • martin.busik@busik.de
      Hi Jared, ... See http://search.cpan.org/~mkutter/SOAP-Lite-0.710.10/lib/SOAP/Lite.pm, documentation of the on_action() method. Cheers, Martin
      Message 2 of 2 , Dec 3, 2009
      • 0 Attachment
        Hi Jared,

        to-be:
        > SOAPAction: http://www.snowboard-info.com/EndorsementSearch

        perl-is:
        > SOAPAction: http://www.snowboard-info.com/#EndorsementSearch

        See http://search.cpan.org/~mkutter/SOAP-Lite-0.710.10/lib/SOAP/Lite.pm, documentation of the on_action()
        method.

        Cheers,
        Martin
      Your message has been successfully submitted and would be delivered to recipients shortly.