heyy put like this below for making username and password madatory <xs:element minOccurs="*1*" name="*username*" type="*xs:string*" /> <xs:element minOccurs="1" name="*password*" type="*xs:string*" />
On Thu, Jun 24, 2010 at 10:54 AM, Chinmoy Chakraborty <[email protected]>wrote: > Hi All, > > I ahve a service "authenticate" which has three parameters username, > password, and serviceName. First two parameters are mandatory and the last > parameter is optional. Here is the WSDL portion of the service:.... > ...... > <xs:element name="*authenticate*"> > -<http://127.0.0.1:8080/weblims3/services/labware_weblims_authenticate?wsdl#> > <xs:complexType> > -<http://127.0.0.1:8080/weblims3/services/labware_weblims_authenticate?wsdl#> > <xs:sequence> > <xs:element minOccurs="*0*" name="*username*" nillable="*true*" type="* > xs:string*" /> > <xs:element minOccurs="*0*" name="*password*" nillable="*true*" type="* > xs:string*" /> > <xs:element minOccurs="*0*" name="s*erviceName*" nillable="*true*" type > ="*xs:string*" /> > </xs:sequence> > </xs:complexType> > </xs:element> > ... > > For all three params "minOccurs" is 0 which means optional. Is there any > way to mention mandatory parameters in services.xml? > > Chinmoy > > -- Regards, Amarnath Redddy.G 91-9985923453.
