
Zerenobsky
Novice
Jul 20, 2009, 10:15 AM
Post #1 of 1
(420 views)
|
|
using SOAP::WSDL::Client
|
Can't Post
|
|
As am trying to test how SOAP::WSDL::Client works. Following the documentation on http://search.cpan.org/dist/SOAP-WSDL/lib/SOAP/WSDL/Client.pm my test code as follows: _____________________________________ #!perl -w use SOAP::WSDL::Client; my $soap = SOAP::WSDL::Client->new({ proxy => 'http://localhost/PerlTest/Service1.asmx' }); my $result = $soap->call('HelloWorld', ); print $result; _____________________________________ Service1.asmx is my test webservice in .Net. I am not getting the appropriate result. The output is: ******************* C:\Documents and Settings\testUser\My Documents\My Website>perl SoapWsdlTest.pl Use of uninitialized value in exists at C:/Perl/site/lib/SOAP/WSDL/Expat/Message Parser.pm line 42. Use of uninitialized value in hash element at C:/Perl/site/lib/SOAP/WSDL/Expat/M essageParser.pm line 50. <Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server< /faultcode><faultstring>Error deserializing message: Can't call method &quo t;get_typemap" on an undefined value at C:/Perl/site/lib/SOAP/WSDL/Expat/Me ssageParser.pm line 53. . Message was: <?xml version="1.0" encoding="utf-8"?><soap:Envelop e xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=&qu ot;http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3 .org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode> ;soap:Client</faultcode><faultstring>System.Web.Services.Protocols.S oapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMe ssage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, Http Context context, HttpRequest request, HttpResponse response, Boolean&amp; ab ortProcessing)</faultstring><detail /></soap:Fault></soap:B ody></soap:Envelope></faultstring><faultactor>urn:localhost</faultactor ></Fault> ******************** Thank you.
|