axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amarnath Reddy <amarnathreddy...@gmail.com>
Subject Re: How to mention mandatory parameters in services.xml?
Date Thu, 24 Jun 2010 05:38:50 GMT
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 <cchinu@gmail.com>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.

Mime
View raw message