Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to define array of stations in LoginResponse complex type

 
maha laxmi
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • 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>
 
hamlin stephen
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use
<xsd:element name="stationList" nillable="true" type="xsd:string" maxOccurs="unbounded" />
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic