<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Service1" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://192.168.16.60:30001/Service1.svc?xsd=xsd0" namespace="http://tempuri.org/" />
<xsd:import schemaLocation="http://192.168.16.60:30001/Service1.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
<xsd:import schemaLocation="http://192.168.16.60:30001/Service1.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ShuiFeiYCWCF" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="IService1_UploadCBSJToHLSF_InputMessage">
<wsdl:part name="parameters" element="tns:UploadCBSJToHLSF" />
</wsdl:message>
<wsdl:message name="IService1_UploadCBSJToHLSF_OutputMessage">
<wsdl:part name="parameters" element="tns:UploadCBSJToHLSFResponse" />
</wsdl:message>
<wsdl:message name="IService1_GetHLALLCeBenXX_InputMessage">
<wsdl:part name="parameters" element="tns:GetHLALLCeBenXX" />
</wsdl:message>
<wsdl:message name="IService1_GetHLALLCeBenXX_OutputMessage">
<wsdl:part name="parameters" element="tns:GetHLALLCeBenXXResponse" />
</wsdl:message>
<wsdl:message name="IService1_GetHLCeBenXX_InputMessage">
<wsdl:part name="parameters" element="tns:GetHLCeBenXX" />
</wsdl:message>
<wsdl:message name="IService1_GetHLCeBenXX_OutputMessage">
<wsdl:part name="parameters" element="tns:GetHLCeBenXXResponse" />
</wsdl:message>
<wsdl:message name="IService1_GetHLChaoBiaoZT_InputMessage">
<wsdl:part name="parameters" element="tns:GetHLChaoBiaoZT" />
</wsdl:message>
<wsdl:message name="IService1_GetHLChaoBiaoZT_OutputMessage">
<wsdl:part name="parameters" element="tns:GetHLChaoBiaoZTResponse" />
</wsdl:message>
<wsdl:message name="IService1_MarkingReadedRemote_InputMessage">
<wsdl:part name="parameters" element="tns:MarkingReadedRemote" />
</wsdl:message>
<wsdl:message name="IService1_MarkingReadedRemote_OutputMessage">
<wsdl:part name="parameters" element="tns:MarkingReadedRemoteResponse" />
</wsdl:message>
<wsdl:message name="IService1_GetData_InputMessage">
<wsdl:part name="parameters" element="tns:GetData" />
</wsdl:message>
<wsdl:message name="IService1_GetData_OutputMessage">
<wsdl:part name="parameters" element="tns:GetDataResponse" />
</wsdl:message>
<wsdl:message name="IService1_GetDataUsingDataContract_InputMessage">
<wsdl:part name="parameters" element="tns:GetDataUsingDataContract" />
</wsdl:message>
<wsdl:message name="IService1_GetDataUsingDataContract_OutputMessage">
<wsdl:part name="parameters" element="tns:GetDataUsingDataContractResponse" />
</wsdl:message>
<wsdl:portType name="IService1">
<wsdl:operation name="UploadCBSJToHLSF">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/UploadCBSJToHLSF" message="tns:IService1_UploadCBSJToHLSF_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/UploadCBSJToHLSFResponse" message="tns:IService1_UploadCBSJToHLSF_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetHLALLCeBenXX">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetHLALLCeBenXX" message="tns:IService1_GetHLALLCeBenXX_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetHLALLCeBenXXResponse" message="tns:IService1_GetHLALLCeBenXX_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetHLCeBenXX">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetHLCeBenXX" message="tns:IService1_GetHLCeBenXX_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetHLCeBenXXResponse" message="tns:IService1_GetHLCeBenXX_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetHLChaoBiaoZT">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetHLChaoBiaoZT" message="tns:IService1_GetHLChaoBiaoZT_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetHLChaoBiaoZTResponse" message="tns:IService1_GetHLChaoBiaoZT_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="MarkingReadedRemote">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/MarkingReadedRemote" message="tns:IService1_MarkingReadedRemote_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/MarkingReadedRemoteResponse" message="tns:IService1_MarkingReadedRemote_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetData">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetData" message="tns:IService1_GetData_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetDataResponse" message="tns:IService1_GetData_OutputMessage" />
</wsdl:operation>
<wsdl:operation name="GetDataUsingDataContract">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetDataUsingDataContract" message="tns:IService1_GetDataUsingDataContract_InputMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetDataUsingDataContractResponse" message="tns:IService1_GetDataUsingDataContract_OutputMessage" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BasicHttpBinding_IService1" type="tns:IService1">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="UploadCBSJToHLSF">
<soap:operation soapAction="http://tempuri.org/IService1/UploadCBSJToHLSF" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetHLALLCeBenXX">
<soap:operation soapAction="http://tempuri.org/IService1/GetHLALLCeBenXX" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetHLCeBenXX">
<soap:operation soapAction="http://tempuri.org/IService1/GetHLCeBenXX" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetHLChaoBiaoZT">
<soap:operation soapAction="http://tempuri.org/IService1/GetHLChaoBiaoZT" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="MarkingReadedRemote">
<soap:operation soapAction="http://tempuri.org/IService1/MarkingReadedRemote" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetData">
<soap:operation soapAction="http://tempuri.org/IService1/GetData" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetDataUsingDataContract">
<soap:operation soapAction="http://tempuri.org/IService1/GetDataUsingDataContract" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service1">
<wsdl:port name="BasicHttpBinding_IService1" binding="tns:BasicHttpBinding_IService1">
<soap:address location="http://192.168.16.60:30001/Service1.svc" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
這個wsdl檔案匯入生成頭檔案里有錯誤顯示
// 不能解開:
// - 輸入的部分不是指一個元素
// - 輸出部分不是指一個元素
Cannot unwrap:
- Input part does not refer to an element
- Output part does not refer to an element*
是怎么回事
uj5u.com熱心網友回復:
根節點:wsdl:definitions,子節點: 18
第1節: 名稱wsdl:types 無文本
第1節: 名稱xsd:schema 無文本
屬性名:targetNamespace 屬性值:http://tempuri.org/Imports
第1節: 名稱xsd:import 無文本
屬性名:schemaLocation 屬性值:http://192.168.16.60:30001/Service1.svc?xsd=xsd0
屬性名:namespace 屬性值:http://tempuri.org/
第2節: 名稱xsd:import 無文本
屬性名:schemaLocation 屬性值:http://192.168.16.60:30001/Service1.svc?xsd=xsd1
屬性名:namespace 屬性值:http://schemas.microsoft.com/2003/10/Serialization/
第3節: 名稱xsd:import 無文本
屬性名:schemaLocation 屬性值:http://192.168.16.60:30001/Service1.svc?xsd=xsd2
屬性名:namespace 屬性值:http://schemas.datacontract.org/2004/07/ShuiFeiYCWCF
第2節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_UploadCBSJToHLSF_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:UploadCBSJToHLSF
第3節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_UploadCBSJToHLSF_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:UploadCBSJToHLSFResponse
第4節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLALLCeBenXX_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLALLCeBenXX
第5節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLALLCeBenXX_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLALLCeBenXXResponse
第6節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLCeBenXX_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLCeBenXX
第7節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLCeBenXX_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLCeBenXXResponse
第8節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLChaoBiaoZT_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLChaoBiaoZT
第9節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetHLChaoBiaoZT_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetHLChaoBiaoZTResponse
第10節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_MarkingReadedRemote_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:MarkingReadedRemote
第11節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_MarkingReadedRemote_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:MarkingReadedRemoteResponse
第12節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetData_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetData
第13節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetData_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetDataResponse
第14節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetDataUsingDataContract_InputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetDataUsingDataContract
第15節: 名稱wsdl:message 無文本
屬性名:name 屬性值:IService1_GetDataUsingDataContract_OutputMessage
第1節: 名稱wsdl:part 無文本
屬性名:name 屬性值:parameters
屬性名:element 屬性值:tns:GetDataUsingDataContractResponse
第16節: 名稱wsdl:portType 無文本
屬性名:name 屬性值:IService1
第1節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:UploadCBSJToHLSF
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/UploadCBSJToHLSF
屬性名:message 屬性值:tns:IService1_UploadCBSJToHLSF_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/UploadCBSJToHLSFResponse
屬性名:message 屬性值:tns:IService1_UploadCBSJToHLSF_OutputMessage
第2節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLALLCeBenXX
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLALLCeBenXX
屬性名:message 屬性值:tns:IService1_GetHLALLCeBenXX_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLALLCeBenXXResponse
屬性名:message 屬性值:tns:IService1_GetHLALLCeBenXX_OutputMessage
第3節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLCeBenXX
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLCeBenXX
屬性名:message 屬性值:tns:IService1_GetHLCeBenXX_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLCeBenXXResponse
屬性名:message 屬性值:tns:IService1_GetHLCeBenXX_OutputMessage
第4節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLChaoBiaoZT
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLChaoBiaoZT
屬性名:message 屬性值:tns:IService1_GetHLChaoBiaoZT_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetHLChaoBiaoZTResponse
屬性名:message 屬性值:tns:IService1_GetHLChaoBiaoZT_OutputMessage
第5節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:MarkingReadedRemote
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/MarkingReadedRemote
屬性名:message 屬性值:tns:IService1_MarkingReadedRemote_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/MarkingReadedRemoteResponse
屬性名:message 屬性值:tns:IService1_MarkingReadedRemote_OutputMessage
第6節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetData
uj5u.com熱心網友回復:
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetData
屬性名:message 屬性值:tns:IService1_GetData_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetDataResponse
屬性名:message 屬性值:tns:IService1_GetData_OutputMessage
第7節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetDataUsingDataContract
第1節: 名稱wsdl:input 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetDataUsingDataContract
屬性名:message 屬性值:tns:IService1_GetDataUsingDataContract_InputMessage
第2節: 名稱wsdl:output 無文本
屬性名:wsaw:Action 屬性值:http://tempuri.org/IService1/GetDataUsingDataContractResponse
屬性名:message 屬性值:tns:IService1_GetDataUsingDataContract_OutputMessage
第17節: 名稱wsdl:binding 無文本
屬性名:name 屬性值:BasicHttpBinding_IService1
屬性名:type 屬性值:tns:IService1
第1節: 名稱soap:binding 無文本
屬性名:transport 屬性值:http://schemas.xmlsoap.org/soap/http
第2節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:UploadCBSJToHLSF
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/UploadCBSJToHLSF
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLALLCeBenXX
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/GetHLALLCeBenXX
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第4節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLCeBenXX
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/GetHLCeBenXX
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第5節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetHLChaoBiaoZT
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/GetHLChaoBiaoZT
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第6節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:MarkingReadedRemote
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/MarkingReadedRemote
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第7節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetData
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/GetData
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第8節: 名稱wsdl:operation 無文本
屬性名:name 屬性值:GetDataUsingDataContract
第1節: 名稱soap:operation 無文本
屬性名:soapAction 屬性值:http://tempuri.org/IService1/GetDataUsingDataContract
屬性名:style 屬性值:document
第2節: 名稱wsdl:input 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第3節: 名稱wsdl:output 無文本
第1節: 名稱soap:body 無文本
屬性名:use 屬性值:literal
第18節: 名稱wsdl:service 無文本
屬性名:name 屬性值:Service1
第1節: 名稱wsdl:port 無文本
屬性名:name 屬性值:BasicHttpBinding_IService1
屬性名:binding 屬性值:tns:BasicHttpBinding_IService1
第1節: 名稱soap:address 無文本
屬性名:location 屬性值:http://192.168.16.60:30001/Service1.svc
如上分析,你的xml檔案無問題。
uj5u.com熱心網友回復:
檢查你的代碼吧。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/63132.html
下一篇:C#資料結構順序表錯在哪里 求解
