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

5405perl 2 .net: ERROR:Server did not recognize the value of HTTP Header SOAPAction

Expand Messages
  • Pauljames Dimitriu
    May 15, 2006
    • 0 Attachment
      Hi,

      I'm trying to connect to a .net server w/ the following code
      and I get the above error: Server did not recognize the value of
      HTTP Header SOAPAction: http://myurl.com/MYFunction

      Here is the code I'm using.....How can I get around this?

      Thanks

      ---------------------


      use SOAP::Lite +trace => qw(debug);
      $SOAP::Constants::DO_NOT_USE_CHARSET = 1;

      use Data::Dumper;

      my $soap = SOAP::Lite
      -> uri('http://myurl.com/MYFunction)
      -> on_action(sub{
      return "http://myurl.com/MYFunction/RunFunction"; })
      -> proxy('http://myurl.com/location.asmx');

      my $method = SOAP::Data->name('RunFunction')
      ->attr( {xmlns => 'http://myurl.com/MYFunction/' });

      my @params = ( SOAP::Data->name( firstName => 'Paul' )->type
      ('string'),
      SOAP::Data->name( lastName => 'D' )->type('string'));

      print $soap->call($method => @params);