• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

how to define parameter for complex type in web service?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic