Loading ...
Sorry, an error occurred while loading the content.

3105Newbie Question: Datatype/namespaces

Expand Messages
  • greenishmarsian
    Nov 4, 2003
    • 0 Attachment
      I'm in trouble with sending information to a server.

      In the wsdl file I use, definition of method is:

      - <wsdl:message name="getResearchListRequest">
      <wsdl:part name="name0" type="xsd:string" />
      <wsdl:part name="name1" type="tns2:ArrayOffString" />
      <wsdl:part name="name2" type="tns2:ArrayOffint" />
      <wsdl:part name="name3" type="tns2:ArrayOffString" />


      I'm sending request:


      #!/usr/local/bin/perl

      use SOAP::Lite;

      my $svc = SOAP::Lite-> service('http://......');
      my $resp1 = $svc-> getResearchList (
      SOAP::Data->name ('research_list') -> value ([
      SOAP::Data->name(item0=>'xxx') -> type ('string'),
      SOAP::Data->name(item1=>'111111') -> type ('string'),
      SOAP::Data->name(item2=>'111') -> type ('int'),
      SOAP::Data->name(item3=>'xx') -> type ('string')
      ]));


      But server returns an error:

      <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: Bad types (class
      [Ljava.lang.Object; -> class java.lang.String)</faultstring>
      <detail/>
      </soapenv:Fault>

      I don't know what datatype should I use
    • Show all 2 messages in this topic