1 Reply Latest reply: Aug 23, 2012 9:14 AM by Jason_(A_Non) RSS

    XML: WSDL anyType

    Swapnil Kharwadkar

      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
          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:element name="in0" type="xsd:anyType" nillable="true" minOccurs="1" maxOccurs="1"/>