axis and complex type help

Discussion in 'Java' started by Andrea, Jun 9, 2004.

  1. Andrea

    Andrea Guest

    Hi, I have a problem.
    I make a webservice invocation with axis:

    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress( new java.net.URL(URL) );
    call.setOperationName(new QName(URI, methodName) );
    call.setUsername( l_userName ) ;
    call.setPassword( l_password ) ;
    call.addParameter("FLATPO",
    org.apache.axis.Constants.XSD_STRING,
    javax.xml.rpc.ParameterMode.IN);
    call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
    ret = (String) call.invoke( new Object[] { FlatPO } );
    System.out.println("Debug call.invoke" + ret );

    this web service return me a soap response like this:

    <SOAP-ENV:Body>
    <ser-root:doGetStockVendorListResponse
    xmlns:ser-root="http://www.medicalplaza.it/hub" SOAP-ENC:root="1">
    <XVENDOR_LIST xsi:type="SOAP-ENC:Array"
    SOAP-ENC:arrayType="webM:XVENDOR_LISTArrayItem[2]">
    <item xsi:type="webM:XVENDOR_LISTArrayItem">
    <STCEG_TO xsi:type="xsd:string">00735390155</STCEG_TO>
    </item>
    <item xsi:type="webM:XVENDOR_LISTArrayItem">
    <STCEG_TO xsi:type="xsd:string">IT03264970967</STCEG_TO>
    </item>
    </XVENDOR_LIST>
    </ser-root:doGetStockVendorListResponse>
    </SOAP-ENV:Body>


    whith an array that contains 2 string.
    My client axis response that:
    org.xml.sax.SAXException: No deserializer defined for array type
    {http://www.webMethods.com/noNamespace/}XVENDOR_LISTArrayItem

    If i set like returntype XSD_STRING it response Bad Type

    What can i do???
    Help me please

    Thanks
    Andrew
    Andrea, Jun 9, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    922
  2. Replies:
    0
    Views:
    672
  3. Stanimir Stamenkov
    Replies:
    2
    Views:
    744
    Stanimir Stamenkov
    Oct 25, 2005
  4. Replies:
    1
    Views:
    806
    Manish Pandit
    Jan 4, 2007
  5. Robert Mark Bram
    Replies:
    0
    Views:
    682
    Robert Mark Bram
    Feb 4, 2007
Loading...

Share This Page