| Author |
how to define array of stations in LoginResponse complex type
|
maha laxmi
Ranch Hand
Joined: Sep 23, 2005
Posts: 68
|
|
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>
|
 |
hamlin stephen
Ranch Hand
Joined: Dec 11, 2003
Posts: 45
|
|
Please use <xsd:element name="stationList" nillable="true" type="xsd:string" maxOccurs="unbounded" />
|
 |
 |
|
|
subject: how to define array of stations in LoginResponse complex type
|
|
|