Java and WSDL complexType

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent Yau

    Java and WSDL complexType


    Dear All:

    I am new to WSDL so I have a question.

    I have been using Java/SOAP to get some data from this
    web services running at a remote site. Everything
    is great except last week when I want to retrieve
    some data that are in String[].

    In the WSDL provided, the data type returned is

    <xsd:complexTyp e name="ArrayOfst ring">
    <xsd:complexCon tent>
    <xsd:restrictio n base="soapenc:A rray">
    <xsd:attribut e ref="soapenc:ar rayType"
    wsdl:arrayType= "xsd:string[]" />
    </xsd:restriction >
    </xsd:complexCont ent>
    </xsd:complexType >


    I have been using

    org.apache.axis .client.call(St ring[])

    to send over requests. The return type is Object which I can't
    cast to (String []).

    Any suggestion on how I can obtain the return value when it is an array
    of String?

    thanks

    -Vincent
    [email protected]

Working...