soap 协议 VC++如何在post消息中添加user-agent消息?
使用soap toolkit 3.0 向服务端发送一个soap包 如下:
POST /WebServices/WeatherWS.asmx?wsdl HTTP/1.1
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: no-cache
Content-Type: text/xml; charset="UTF-8"
User-Agent: SOAP Toolkit 3.0
SOAPAction: "http://WebXml.com.cn/getWeather"
Content-Length: 532
Host: webservice.webxml.com.cn
<?xml version="1.0" encoding="UTF-8" standalone="no"?><Soap:Envelope Soap:encodingStyle="" xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/
现在需要将User-Agent:后的信息换掉,因为服务端会有一个验证。。我找了一下soap文档,没有发现可设置属性的地方。。