This discussion is archived
1 Reply Latest reply: Aug 23, 2012 7:14 AM by Jason_(A_Non) RSS

XML: WSDL anyType

Swapnil Kharwadkar Newbie
Currently Being Moderated
Hi

My wsdl has 10 operations.
Response for each operation differ and depends on request, so schema for response does not exist.
I need to define schema for response type in WSDL.
My idea is to have request of different 10 types (1 schema for each operation) and response to be free-form XML. That is, any XML can be received.

How can I use xsd:anyType for this purpose? Any thoughts?


Thanks and Regards
Swapnil Kharwadkar
  • 1. Re: XML: WSDL anyType
    Jason_(A_Non) Expert
    Currently Being Moderated
    This is based off an answer I received when I asked a similar question about allowing any XML to be received by a web service. This sample shows how to use xsd:anyType to accomplish that.
    <xsd:element name="executeProcess">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="in0" type="xsd:anyType" nillable="true" minOccurs="1" maxOccurs="1"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points