CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
using SOAP::WSDL::Client

 



Zerenobsky
Novice

Jul 20, 2009, 10:15 AM

Post #1 of 1 (701 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&apos;t call method &quo
t;get_typemap&quot; on an undefined value at C:/Perl/site/lib/SOAP/WSDL/Expat/Me
ssageParser.pm line 53.
.
Message was:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;soap:Envelop
e xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi=&qu
ot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3
.org/2001/XMLSchema&quot;&gt;&lt;soap:Body&gt;&lt;soap:Fault&gt;&lt;faultcode&gt
;soap:Client&lt;/faultcode&gt;&lt;faultstring&gt;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;amp; ab
ortProcessing)&lt;/faultstring&gt;&lt;detail /&gt;&lt;/soap:Fault&gt;&lt;/soap:B
ody&gt;&lt;/soap:Envelope&gt;</faultstring><faultactor>urn:localhost</faultactor
></Fault>
********************

Thank you.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives