这是我的wsdl:
definitions targetNamespace="http://sei.profile.employee.com/" name="SimpleEmployeeProfileService" xmlns="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://sei.profile.employee.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema>
<xsd:import namespace="http://sei.profile.employee.com/" schemaLocation="EmployeeProfile_schema1.xsd"/>
</xsd:schema>
</types>
<message name="getEmployeeDetails">
<part name="parameters" element="tns:getEmployeeDetails"/>
<part name="departmentId" element="tns:departmentId"/>
</message>
<message name="getEmployeeDetailsResponse">
<part name="result" element="tns:getEmployeeDetailsResponse"/>
</message>
<portType name="SimpleEmployeeProfileService">
<operation name="getEmployeeDetails" parameterOrder="parameters departmentId">
<input ns1:Action="http://sei.profile.employee.com/EmployeeProfile/getEmployeeDetailsRequest" message="tns:getEmployeeDetails" xmlns:ns1="http://www.w3.org/2007/05/addressing/metadata"/>
<output ns2:Action="http://sei.profile.employee.com/EmployeeProfile/getEmployeeDetailsResponse" message="tns:getEmployeeDetailsResponse" xmlns:ns2="http://www.w3.org/2007/05/addressing/metadata"/>
</operation>
</portType>
<binding name="SimpleEmployeeProfileServicePortBinding" type="tns:SimpleEmployeeProfileService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getEmployeeDetails">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="SimpleEmployeeProfileService">
<port name="SimpleEmployeeProfileServicePort" binding="tns:SimpleEmployeeProfileServicePortBinding">
<soap:address location="http://localhost:8080/SimpleWebService/SimpleEmployeeProfileService"/>
</port>
</service>
</definitions>
这是错误:
the prefix "soap" for element "soap:binding" is not bound
我检查了标签,但到目前为止我没有发现任何错误。任何帮助,将不胜感激。提前致谢。
答案 0 :(得分:0)
我在定义标签“xmlns:soap =”http://schemas.xmlsoap.org/wsdl/soap/“中添加了以下内容,它解决了我的问题......
我仍然会发布此问题,因为它可能会帮助其他用户。