Click here to get back home

SOAP::WSDL error accessing remote site.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SOAP::WSDL error accessing remote site. John 07-19-2007
Posted by John on July 19, 2007, 3:14 am
Please log in for more thread options


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);
}


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



Similar ThreadsPosted
SOAP::Lite WSDL method with multiple soap:body parts February 16, 2005, 3:32 pm
SOAP::Lite and WSDL namespace - please help November 4, 2005, 10:43 am
SOAP::Lite and .wsdl files April 7, 2006, 11:36 am
SOAP::Lite POD::WSDL and .NET clients April 25, 2007, 12:41 pm
How to generate WSDL file from SOAP::Lite May 25, 2007, 5:48 am
RFC: SOAP module with implicit WSDL generation April 4, 2008, 2:38 pm
Remote.pm (File::Remote) error handling question January 29, 2007, 12:57 pm
SOAP::Lite creating remote objects March 29, 2006, 9:51 am
Remote.pm (File::Remote) problem February 28, 2006, 9:50 pm
Writing a HTML/ASP SOAP client for a SOAP::Lite destination March 16, 2005, 5:19 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap