请教一下大家伙,用VS帮助生成的代理类去调用别人的webservice,但是现在我想要自定义报文头,在报文头里加两行内容,咋做?
比如说这样的报文头
POST https://test.services.jetplan.com/Plan HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.jetplan.com/computePlan"
Content-Length: 1336
Host: test.services.jetplan.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
我想加两行
uid userid
pwd password