I am trying to write a simple SOAP client written in perl and to talk to a
webservice
written in .NET. I am unsuccessful. I believe the web service is expecting
document/literal SOAP messages but I think the SOAP::Lite module sends stuff in
RPC/encoded messages.
Is there any way of telling? Or, even better, is there a way to force the
SOAP::Lite
module to use document/literal messaging?
Since everyone like to see some code, here it is:
The Web Service (in .NET):
----------------------------
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
The Client:
-------------
use SOAP::Lite;
my $soap = SOAP::Lite
-> uri('http://www.alfredbr.com')
-> on_action( sub { join '/', 'http://www.alfredbr.com', $_[1] } )
-> proxy('http://localhost/Example1/Service1.asmx');
print $soap->HelloWorld()->result;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>