📄 http-binding-validator.wsdl
字号:
<!-- GET tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_get+whatever-content-type" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # GET only supports urlReplacement and urlEncoded </wsdl:documentation> <http:binding verb="GET"/> <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_get+urlEncoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # GET should support urlEncoded </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> <!-- ###################################### --> <!-- DELETE tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_delete+whatever-content-type" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # DELETE only supports urlReplacement and urlEncoded </wsdl:documentation> <http:binding verb="DELETE"/> <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+urlEncoded" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # DELETE should support urlEncoded </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> <!-- ###################################### --> <!-- urlReplacement tests--> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_post+urlReplacement" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # POST can use urlReplacement </wsdl:documentation> <http:binding verb="POST"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello/(TestPart)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_put+urlReplacement" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # PUT can use urlReplacement </wsdl:documentation> <http:binding verb="PUT"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello/(TestPart)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_get+urlReplacement" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # GET should support urlReplacement </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello/(TestPart)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_delete+urlReplacement" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # DELETE should support urlReplacement </wsdl:documentation> <http:binding verb="DELETE"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello/(TestPart)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_get+urlReplacement+missing_part" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # WSLD spec requires that all message parts must be in the url pattern when urlReplacement is used. However ODE relaxes this. </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_get+urlReplacement+twice_the_same_part" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # When urlReplacement used, message parts must not be more than ONCE in the url pattern </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello/(TestPart)/(TestPart)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DummyServiceHttpBinding_get+urlReplacement+empty_pattern" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # Operation-location may be empty. REST connector will not fill it for instance. </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location=""/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ###################################### --> <!-- Verb at the operation level --> <!-- ###################################### --> <wsdl:binding name="DummyServiceHttpBinding_no_verb" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # A verb must be defined: it could be in the port tag, or in the operation </wsdl:documentation> <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_no_verb" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldFail # A verb must be defined for each operation: it could be in the port tag, or in the operation </wsdl:documentation> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <odex:binding verb="GET"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="bye"> <http:operation location="DummyService/bye"/> <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_no_verb_in_port" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # Verb may be defined in the operation </wsdl:documentation> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <odex:binding verb="GET"/> <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_verb_overridden" type="ns1:DummyServicePortType"> <wsdl:documentation> shouldPass # Operation may override the verb defined in the port. </wsdl:documentation> <http:binding verb="GET"/> <wsdl:operation name="hello"> <http:operation location="DummyService/hello"/> <odex:binding verb="POST"/> <wsdl:input> <http:urlEncoded/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="hello"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- no <service> tags needed --></wsdl:definitions>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -