Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebMethod that returns an XML datatype

0 views
Skip to first unread message

Czar

unread,
Mar 28, 2005, 8:09:03 PM3/28/05
to
Hi,
I wish to create a web service with a method that will return an
xml-formatted data. But I want the WSDL generated by the webservice to
include the definition of the elements in my return value. Is it possible?

For e.g.

<s:element name="WebMethod1Response">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="WbMethod1Result">
<s:complexType mixed="true">
<s:sequence>
<s:all>
<s:element name="locationId" type="int"/>
<s:element name="locationName" type="string"/>
<s:element name="address1" type="string"/>
<s:element name="address2" type="string"/>
<s:element name="city" type="string"/>
<s:element name="state" type="string"/>
</s:all>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>

0 new messages