1.首先安装Microsoft SOAP toolkit3
2.比如我们要调用的这个
http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?op=TranslatorString
他的
SOAP 1.2以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /webservices/EnglishChinese.asmx HTTP/1.1
Host: fy.webxml.com.cn
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<TranslatorString xmlns="http://WebXml.com.cn/">
<wordKey>string</wordKey>
</TranslatorString>
</soap12:Body>
</soap12:Envelope>
// 对应的 build SOAP msg 要对应起来
#include <stdio.h>
#import "msxml4.dl