【发布时间】:2015-01-28 00:54:25
【问题描述】:
这对我当前的项目至关重要。我使用 Windows Web 服务用 C++ 编写了一个客户端。此客户端与 Clickatell SMS SOAP Web 服务对话。我已经使用 SOAPUI 工具测试了请求并获得了正确的响应。我也收到短信。现在,当我以编程方式执行此操作时,它会失败,因为 WsCall() [在通过 wsutil.exe 从 WSDL 生成的代码中) 插入,即使我已经包含 Envelope 和 Body 的 SOAP 请求。我无法取出我的信封,因为我在其中指定了命名空间,如下所示: 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/肥皂/编码/\" xmlns:tns=\"soap.clickatell.com\"> 我知道附加的信封和正文已插入,因为我在 Fiddler 工具中看到了它。 非常感谢我能得到的任何帮助!
【问题讨论】:
标签: c++ soap web service clickatell