0
扔試圖生成存根(WebService的客戶端)時的錯誤這是我的WSDL:的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
我已經檢查了標籤但到目前爲止我還沒有發現任何錯誤。任何幫助,將不勝感激。提前致謝。