*
The moose likes Web Services and the fly likes how to define parameter for complex type in web service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to define parameter for complex type in web service?" Watch "how to define parameter for complex type in web service?" New topic
Author

how to define parameter for complex type in web service?

MrsSarika aggarwal
Greenhorn

Joined: Jun 26, 2006
Posts: 1
I have a wsdl, in which there is a tag calling function validateAddresses, whose parameter is a array of data type USAddress, which has several attributes like, state,city ,country.

How to define parameter for validateAddress using axis.
like
call.addParameter("USAddress", XMLType.XSD_STRING, ParameterMode.IN);

<xsd:complexType name="validateAddresses">
<xsd:sequence>
<xsd:element type="ns2:USAddress" minOccurs="0" nillable="true" name="arrayOfUSAddress_1" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="USAddress">
<xsd:sequence>
<xsd:element type="xsd:string" nillable="true" name="address1"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="address2"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="city"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="country"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="county"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="district"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="state"></xsd:element>
<xsd:element type="xsd:string" nillable="true" name="zip"></xsd:element>
</xsd:sequence>
</xsd:complexType>


Thanks in advance.
Sarika
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to define parameter for complex type in web service?
 
Similar Threads
parameters type
JAX-RPC - deserialization error: unexpected XML reader state.
Question using XSD with JAXB
Axis 2 Binding question (Important)
how to define array of stations in LoginResponse complex type