用于纯XML而不是SOAP的WSDL服务

我可以使用一个仅使用纯 XML数据而不是SOAP的WSDL?

如果可以,请给我一个示例WSDL?

是的,可以在WSDL中描述通过HTTP发送纯XML数据.而不是使用< soap:binding>在定义操作的绑定时,您可以使用< http:binding&gt ;.例如:
<deFinitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:example" xmlns:tns="urn:example">
    <types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:example">
        <element name="content">
            <complexType>
            <sequence>
                <element name="first" type="string"/>
                <element name="second" type="integer"/>
            </sequence>
            </complexType>
        </element>
        </schema>
    </types>

    <message name="id">
        <part name="id" type="xsd:string"/>
    </message>

    <message name="info">
        <part name="info" type="tns:content"/>
    </message>

    <portType name="widgetPortType">
        <operation name="getInfo">
        <input message="tns:id"/>
        <output message="tns:info"/>
        </operation>
    </portType>

    <binding name="binding" type="tns:widgetPortType">
        <http:binding verb="POST"/>
        <operation name="getInfo">
        <http:operation location="getInfo"/>
        <input>
            <mime:content type="application/x-www-form-urlencoded"/>
        </input>
        <output>
            <mime:mimeXml/>
        </output>
        </operation>
    </binding>

    <service name="widgetService">
        <port name="port" binding="tns:binding">
        <http:address location="http://www.example.org/"/>
        </port>
    </service>

</deFinitions>

您可以在这里找到有关使用HTTP绑定的其他信息:
http://docs.oracle.com/cd/E19182-01/821-0830/cnfg_http-bc-get-processing_r/index.html

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念