A
Alan Chen
Hi,
I am writing my first web service, here is the signiture of my
webmethod in C#:
[WebMethod]
public string Request(
string productType,
double version,
out string confirmationID
)
And here is part of the generated WSDL file:
- <s:element name="Request">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="productType"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="version"
type="s:double" />
</s:sequence>
</s:complexType>
</s:element>
My question is why minOccures="0" for productType even if it is not
optional.
I know there is no optional parameters for webmethod, but the WSDL
file might confuse users.
Thanks for your help!
Alan Chen
I am writing my first web service, here is the signiture of my
webmethod in C#:
[WebMethod]
public string Request(
string productType,
double version,
out string confirmationID
)
And here is part of the generated WSDL file:
- <s:element name="Request">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="productType"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="version"
type="s:double" />
</s:sequence>
</s:complexType>
</s:element>
My question is why minOccures="0" for productType even if it is not
optional.
I know there is no optional parameters for webmethod, but the WSDL
file might confuse users.
Thanks for your help!
Alan Chen