Bill Curnow wrote:
I'm attempting to get a perl soap client (v5.6.1; SOAP::Lite v0.46)
to communicate with a .NET Web Service. The .NET service is
configured to accept document/literal soap messages. As SOAP::Lite
speaks rpc/encoded by default I'm having trouble talking with the
service.
...
Can anyone point me in the right direction?
I've connect Perl to a few .NET web services. You can try the following
style of coding:
my $soap = SOAP::Lite
-> uri('http://namespace.com')
-> on_action( sub { join '/', 'http://namespace.com', $_[1] } )
-> proxy('http://proxy.com)
-> autotype(0);
my $method = SOAP::Data->name('methodname')->attr({xmlns =>
'http://namespace.com'});
my $param1 = SOAP::Data->name('string'=>'hello');
my $xml = $soap->call($method=>(
SOAP::Data->name('param1' => $param1),
SOAP::Data->name('param2' => $param2),
);
Hope this helps.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs