A method in my WebService returns a DataSet containing 5 variables
. 2 of them are string
, 1 int
and the 2 others boolean
.
After publishing the WebService, that specific response in the wsdl
looks like: <s:element minOccurs="0" maxOccurs="1" name="myMethodResult">
Now, people consuming the WebService ask me if I can change it somehow so the wsdl
ends up looking something like this:
<s:element minOccurs="1" maxOccurs="1" name="variable1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="variable2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="variable3" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="variable4" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="variable5" type="s:boolean" />
How can I achieve that?