📄 http-binding-validator.wsdl
字号:
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://axis2.ode.apache.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://axis2.ode.apache.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:odex="http://www.apache.org/ode/type/extension/http" targetNamespace="http://axis2.ode.apache.org"> <wsdl:message name="helloRequest"> <wsdl:part name="TestPart" type="xs:string"/> </wsdl:message> <wsdl:message name="helloResponse"> <wsdl:part name="TestPart" type="xs:string"/> </wsdl:message> <wsdl:portType name="DummyServicePortType"> <wsdl:operation name="hello"> <wsdl:input message="ns1:helloRequest" wsaw:Action="urn:hello"/> <wsdl:output message="ns1:helloResponse" wsaw:Action="urn:helloResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="DummyServiceSOAP11Binding" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # HttpbindingValidator should fail because this port used soap:binding </wsdl:documentation> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="hello"> <soap:operation soapAction="urn:hello" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="bye"> <soap:operation soapAction="urn:hello" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ###################################### --> <!-- Supported HTTP Method tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_get" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # GET should be supported </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_post" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # POST should be supported </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="text/xml" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_delete" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # DELETE should be supported </wsdl:documentation> <http:binding verb="DELETE"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_put" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # PUT should be supported </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="text/xml" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_head" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # only GET, DELETE, PUT, POST supported </wsdl:documentation> <http:binding verb="HEAD"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="text/xml" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ###################################### --> <!-- PUT tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_put+text/xml" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # PUT+text/xml should be supported </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="text/xml" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_put+urlEncoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # PUT should be able to use urlEncoded </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_put+form-urlencoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # application/x-www-form-urlencoded should be supported for PUT </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="application/x-www-form-urlencoded" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_put+whatever-content-type" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # Only application/x-www-form-urlencoded and text/xml should be supported </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="whatever-content-type" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ###################################### --> <!-- POST tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_post+text/xml" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # POST+text/xml should be supported </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="text/xml" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_post+urlEncoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # POST should be able to use urlEncoded </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_post+form-urlencoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # application/x-www-form-urlencoded should be supported for POST </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="application/x-www-form-urlencoded" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_post+whatever-content-type" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # Only application/x-www-form-urlencoded and text/xml should be supported </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <mime:content type="whatever-content-type" part="hello"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ###################################### -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -