fujiman has asked for the wisdom of the Perl Monks concerning the following question:
I have been troubled by this problem for the past few days and wondering if there are any PERL gurus that can help.
I get the following fault error message when I'm make a Web Service call using SOAP::Lite. Can some one tell me what this error means and how I can resolve this.
Error Code: soapenv:Server.userException org.xml.sax.SAXException: Bad types (class java.lang.String -> class usdjws65.ArrayOfString) []
Following the samples and documentations of SOAP::Lite, here is a partial to my code:Thanks so much! fujimanuse SOAP::Lite trace=>'debug'; use Data::Dumper; use strict; my $wsdl = #wsdl address my $user, $pwd #variable definition my $service = SOAP::Lite->service($wsdl); my $sid = $service->login($user, $pw); my $method = SOAP::Data->name('doSelect'); my @params = ( SOAP::Data->name("sid" => $sid), SOAP::Data->name("objectType" => 'pcat'), SOAP::Data->name("whereClause" => "sym like 'Hoste +d%'"), SOAP::Data->name("maxRows" => "1"), # what values to get back, more could be added. SOAP::Data->name("attributes" =>SOAP::Data->value( SOAP::Data->name("string" => "sym" +), SOAP::Data->name("string" +=> 'description') ) ) ); #print "dumper: ".Dumper(@params)."\n"; my $result = $service->call($method => @params); if ($result->fault){ print "[".$result->faultcode."] [".$result->faultstring."] [". +$result->faultdetail."]"; } else { print $result->result; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite org.xml.sax.SAXException: Bad types (class java.lang.String -> class usdjws65.ArrayOfString)
by fujiman (Novice) on Sep 13, 2008 at 12:52 UTC | |
by Anonymous Monk on Sep 13, 2008 at 13:13 UTC | |
by fujiman (Novice) on Sep 15, 2008 at 23:57 UTC | |
|
Re: SOAP::Lite org.xml.sax.SAXException: Bad types (class java.lang.String -> class usdjws65.ArrayOfString)
by psini (Deacon) on Sep 13, 2008 at 10:47 UTC | |
|
Re: SOAP::Lite org.xml.sax.SAXException: Bad types (class java.lang.String -> class usdjws65.ArrayOfString)
by Anonymous Monk on Sep 13, 2008 at 10:20 UTC |