You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Chinmoy Chakraborty <cc...@gmail.com> on 2010/06/24 07:24:53 UTC
How to mention mandatory parameters in services.xml?
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
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You did not get my question. My service is deployed as .aar and the WSDL is
autogenerated. Is there any way to mention mandatory parameter in
services.xml. I also noticed there is already JIRA entry for this bug.
https://issues.apache.org/jira/browse/AXIS2-3300
<https://issues.apache.org/jira/browse/AXIS2-3300>Guys please confirm.
On Thu, Jun 24, 2010 at 11:08 AM, Amarnath Reddy <amarnathreddy504@gmail.com
> wrote:
> 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 <cc...@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.
>
Re: How to mention mandatory parameters in services.xml?
Posted by Amarnath Reddy <am...@gmail.com>.
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 <cc...@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.
Re: How to mention mandatory parameters in services.xml?
Posted by Amarnath Reddy <am...@gmail.com>.
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 <cc...@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.
Re: How to mention mandatory parameters in services.xml?
Posted by Amarnath Reddy <am...@gmail.com>.
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 <cc...@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.
Re: How to mention mandatory parameters in services.xml?
Posted by Amarnath Reddy <am...@gmail.com>.
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 <cc...@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.
Re: How to mention mandatory parameters in services.xml?
Posted by Amarnath Reddy <am...@gmail.com>.
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 <cc...@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.