wsdl 1.1规范,wsdl 2.0规范,两者区别
wsdl 1.1 :
wsdl 分为抽象定义部分和具体定义部分
根为description
<definitions> <types> ... </types> <message> ... </message> <portType> ... </portType> <binding> ... </binding> <service> ... </serivce> </definitions>
<wsdl:definitions targetNamespace="http://webservice.security.tempmodule.temp.com.cn" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://webservice.security.tempmodule.temp.com.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" > <wsdl:types><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://webservice.security.tempmodule.temp.com.cn"><xsd:element name="queryFunctionListByUser"><xsd:complexType><xsd:sequence><xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string"/></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="queryFunctionListByUserResponse"><xsd:complexType><xsd:sequence><xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/></xsd:sequence></xsd:complexType></xsd:element></xsd:schema> </wsdl:types> <wsdl:message name="queryFunctionListByUserRequest"> <wsdl:part name="parameters" element="tns:queryFunctionListByUser"/> </wsdl:message> <wsdl:message name="queryFunctionListByUserResponse"> <wsdl:part name="parameters" element="tns:queryFunctionListByUserResponse"/> </wsdl:message> <wsdl:portType name="UserFunctionWebservicePortType"> <wsdl:operation name="queryFunctionListByUser"> <wsdl:input name="queryFunctionListByUserRequest" message="tns:queryFunctionListByUserRequest"/> <wsdl:output name="queryFunctionListByUserResponse" message="tns:queryFunctionListByUserResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="UserFunctionWebserviceHttpBinding" type="tns:UserFunctionWebservicePortType"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="queryFunctionListByUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="queryFunctionListByUserRequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="queryFunctionListByUserResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="UserFunctionWebservice"> <wsdl:port name="UserFunctionWebserviceHttpPort" binding="tns:UserFunctionWebserviceHttpBinding"> <wsdlsoap:address location="http://127.0.0.1:7021/tempproject/webservice/UserFunctionWebservice"/> </wsdl:port> </wsdl:service></wsdl:definitions>