[YLUG] of WSDL, SOAP servers and perl ...
Matthew Gates
matthew at porpoisehead.net
Wed Dec 17 15:20:38 UTC 2008
I think the "Internal server error" is just reflecting the failure of the
Perl program.
You can get the program to output the list of paths which are searched by
adding this line near the top of your script:
foreach my $d (@INC) { print $d . "\n"; }
Be aware that when you execute from the command line, extra or different
search paths may be used as the path is partly determined by compiled in
defaults, and partly by the environment.
Matthew
On Wednesday 17 December 2008, Stephen Patterson wrote:
> I've fallen into a bit of a hole developing a SOAP server with a WSDL in
> perl. I have 3 perl modules
>
> lib/BandwidthReport.pm - service module, currently just 1 function which
> dumps all its input to a logfile
> lib/BandwidthReportRequest.pm - custom request type, just a hash
> ;ib/BandwidthReportResponse.pm - custom response, again a hash
> service.cgi - the actual service
>
> The modules are all in the same directory 'lib' and I'm using Pod::WSDL
> to generate a WSDL for the service.
>
> When I connect a client (currently using perl & SOAP::WSDL) to the
> service I get all the following error in the client
>
> cannot import document for namespace
>
> >http://schemas.xmlsoap.org/soap/encoding/< without location at
>
> /usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Expat/WSDLParser.pm line 81.
>
> and a server error
> SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
> Server Error
>
> <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:F
>ault><faultcode>soap:Client</faultcode><faultstring>Failed to locate
> method (BandwidthReport) in class (main) at
> /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm line 2586.
> </faultstring></soap:Fault></soap:Body></soap:Envelope>
>
> I've attached a copy of the code, its very minimal at the moment until I
> get the data transmission sorted out, might be a long shot but can anyone
> clue me in?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/york/attachments/20081217/31ce55e9/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.lug.org.uk/pipermail/york/attachments/20081217/31ce55e9/attachment.pgp
More information about the York
mailing list