首页 文章

如何在SOAP请求中关闭Envelope和Body

提问于
浏览
-1

这对我目前的项目至关重要 . 我使用Windows Web服务在C中编写了一个客户端 . 该客户端与Clickatell SMS SOAP Web服务进行通信 . 我已使用SOAPUI工具测试了请求并获得了正确的响应 . 我也收到了短信 . 现在,当我以编程方式执行此操作时,它会失败,因为即使我已经包含Envelope和Body的SOAP请求,WsCall()[在通过wsutil.exe从WSDL生成的代码中]也会插入 . 因为我在其中指定了名称空间,所以我无法取出我的信封:http://schemas.xmlsoap.org/soap/encoding/ \“xmlns:s = \”http://schemas.xmlsoap.org/soap/ envelope / \“xmlns:xsd = \”http://www.w3.org/2001/XMLSchema \“xmlns:xsi = \”http://www.w3.org/2001/XMLSchema-instance \“xmlns: SOAP-ENC = \“http://schemas.xmlsoap.org/soap/encoding/ \”xmlns:tns = \“soap.clickatell.com \”>我知道,因为我看到了额外的信封和正文在Fiddler工具中 . 我能得到的任何帮助都非常感谢!

1 回答

相关问题