c#调用delphi开发的webservice接口,中文返回值为乱码(一个汉字返回???),如何进行

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yelin042/article/details/82590548

c#调用delphi开发的webservice接口,中文返回值为乱码(一个汉字返回???),如何进行

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" name="IWebserviceDemoservice" targetNamespace="http://tempuri.org/">
<message name="getText0Request">
<part name="i" type="xs:int"/>
</message>
<message name="getText0Response">
<part name="return" type="xs:string"/>
</message>
<portType name="IWebserviceDemo">
<operation name="getText">
<input message="tns:getText0Request"/>
<output message="tns:getText0Response"/>
</operation>
</portType>
<binding name="IWebserviceDemobinding" type="tns:IWebserviceDemo">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getText">
<soap:operation soapAction="urn:WebserviceDemoIntf-IWebserviceDemo#getText" style="rpc"/>
<input message="tns:getText0Request">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WebserviceDemoIntf-IWebserviceDemo"/>
</input>
<output message="tns:getText0Response">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WebserviceDemoIntf-IWebserviceDemo"/>
</output>
</operation>
</binding>
<service name="IWebserviceDemoservice">
<port name="IWebserviceDemoPort" binding="tns:IWebserviceDemobinding">
<soap:address location="http://10.0.2.15:9808/Project2.dll/soap/IWebserviceDemo"/>
</port>
</service>
</definitions>

猜你喜欢

转载自blog.csdn.net/yelin042/article/details/82590548