日期:2014-05-17  浏览次数:20413 次

soap调用webservice
测试地址:http://api-sandbox.tg.qq.com/API/services/AccountService?wsdl
Request:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://api.tg.soso.com/advertise/accountservice/v1">
  <soapenv:Header>
  <token>d573b032-507f-4f07-88da-7a4019d36252</token>  
  </soapenv:Header>
  <soapenv:Body>
  <v1:getAdvertiserInfoRequest/>
  </soapenv:Body>
</soapenv:Envelope>

通过WSDL.EXE生成了代理类。如何设置TOKEN来调用http://api-sandbox.tg.qq.com/API/services/AccountService?wsdl中的方法,获得数据?十万火急。希望可以给我一个可以运行的Demo。

------解决方案--------------------
你给个邮箱,我把程序打包后给你发过去