• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how to define array of stations in LoginResponse complex type

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is wsdl created on my own;

in the webservice class i have method takes 2 string arguments it returns LoginResponse object;

in the LoginResponse object along with id,userName,userId i want stationList which retuns array of stations;

how to define array of stations in LoginResponse complex type;

LoginResponsegetLogin(String userid,String password)
{

}

<xsd:element name="userID">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Password">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="LoginResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" nillable="true" type="xsd:long"/>
<xsd:element name="userName" nillable="true" type="xsd:string"/>
<xsd:element name="userId" nillable="true" type="xsd:string"/>
<xsd:element name="stationList" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use
<xsd:element name="stationList" nillable="true" type="xsd:string" maxOccurs="unbounded" />
 
reply
    Bookmark Topic Watch Topic
  • New Topic