SOAP::WSDL error accessing remote site.
- From: "John" <john1949@xxxxxxxxx>
- Date: Thu, 19 Jul 2007 08:14:48 +0100
Hi
I am new to SOAP:WSDL. This remote site will return some DNA information.
It should be relatively straightforward - send an accession number and the
DNA information is returned.
I get an error message (see below). The code follows.
Any ideas?
John
#!/usr/bin/perl
use strict;
use warnings;
use SOAP::Lite +trace => 'debug';
use Data::Dumper;
use SOAP::WSDL;
print "Content-type: text/html\n\n";
# -----------------------------------------
my $URL="http://xml.nig.ac.jp/wsdl/GetEntry.wsdl";
my $operation="getXML_DDBJEntry";
my $access="AB00050";
my $no_dispatch=0; # must be zero
my $soap=SOAP::WSDL->new (wsdl=>$URL,no_dispatch=>$no_dispatch);
$soap->servicename("GetEntry");
$soap->wsdlinit;
$soap->on_action (sub{sprintf '%s/%s',@_});
$soap->portname("GetEntry");
my %args=(accession=>$access); # must be hash
my $som=$soap->call($operation,%args);
if ($som->fault) {
print "faultcode - " . $som->faultcode . "<br/>";
print "faultstring - " . $som->faultstring . "<br/>";
print "faultdetail - " . $som->faultdetail . "<br/>";
print Dumper($som->faultdetail);
}
else {
my @all=$som->paramsout();
my $res=$som->result(); print Dumper($res);
print "Result is $res, outparams are @all <br/>";
}
Response is as follow:-
faultcode - soap:Server
faultstring - getXML_DDBJEntry20In
faultdetail - HASH(0x9f47860)
$VAR1 = { 'stacktrace' => 'java.lang.NoSuchMethodException:
getXML_DDBJEntry20In at electric.wsdl.Operations.getOperations(Unknown
Source) at electric.wsdl.Operations.getOperation(Unknown Source) at
electric.soap.SOAPHandler.getOperationWithArgs(Unknown Source) at
electric.soap.SOAPHandler.readRequest(Unknown Source) at
electric.soap.SOAPHandler.invokeOnService(Unknown Source) at
electric.soap.SOAPHandler.invoke(Unknown Source) at
electric.soap.http.SOAPHTTPHandler.service(Unknown Source) at
electric.server.http.ServletServer.service(Unknown Source) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
.
- Prev by Date: Re: Modules Geo::OGC::Geometry and Gtk2::Ex::Geo
- Next by Date: Alternate option to win32::ODBC
- Previous by thread: Modules Geo::OGC::Geometry and Gtk2::Ex::Geo
- Next by thread: Alternate option to win32::ODBC
- Index(es):