Hi All,

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:
use 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; }
Thanks so much! fujiman

In reply to SOAP::Lite org.xml.sax.SAXException: Bad types (class java.lang.String -> class usdjws65.ArrayOfString) by fujiman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.