C#调用 webservice问题
最近做一个C#调用webservice的程序,我在企业内部网添加WEB引用成功,并实现了接口。但现在需要在公网调用,而他们提供的公网的地址无法直接引用,需要加一个soap头。我添加WEB引用的时候报错
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client </faultcode>
<faultstring>[ISS.0088.9109] SOAP is only supported using HTTP POST protocol </faultstring>
<faultactor>http://10.60.12.92:6666/soap/proxy_ws </faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
下载“http://test.datacenter.bsteel.net/soap/proxy_ws”时出错。
请求失败,错误信息为:
--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchem
这是什么意思呢