|ZYCIIS| 一个Java的AXIS WebService 在ASP.NET如何调用?我引入失败,那如何通过HttpWebRequest进行调用呢?谢谢。急
我用VS2012进行引用的时候,引用失败,什么也生成不了问:
1:如何才能正确的引用
2:如果引用不了,如何用HttpWebRequest的方法Get或Post过去调用
谢谢
这个是他的TKService的WSDL
--------------------编程问答-------------------- 重点在于:WSDL created by Apache Axis version: 1.4
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetnamespace="http://192.168.1.188/TKWebService/services/TKService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://192.168.1.188/TKWebService/services/TKService" xmlns:intf="http://192.168.1.188/TKWebService/services/TKService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:message name="Itfc_szftRequest">
<wsdl:part name="fydm" type="xsd:string"/>
<wsdl:part name="ahdm" type="xsd:string"/>
<wsdl:part name="xh" type="xsd:int"/>
<wsdl:part name="zt" type="xsd:string"/>
<wsdl:part name="url" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="Itfc_szftResponse">
<wsdl:part name="Itfc_szftReturn" type="xsd:boolean"/>
</wsdl:message>
<wsdl:portType name="TKService">
<wsdl:operation name="Itfc_szft" parameterOrder="fydm ahdm xh zt url">
<wsdl:input message="impl:Itfc_szftRequest" name="Itfc_szftRequest"/>
<wsdl:output message="impl:Itfc_szftResponse" name="Itfc_szftResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TKServiceSoapBinding" type="impl:TKService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Itfc_szft">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="Itfc_szftRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://service.gz.tdh" use="encoded"/>
</wsdl:input>
<wsdl:output name="Itfc_szftResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.1.188/TKWebService/services/TKService" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TKServiceService">
<wsdl:port binding="impl:TKServiceSoapBinding" name="TKService">
<wsdlsoap:address location="http://192.168.1.188/TKWebService/services/TKService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
他们是用Apache Axis 做的WebService
那C#怎么来调用 呢?
谢谢
补充:.NET技术 , ASP.NET