【问题标题】:How to turn off Envelope and Body in SOAP request如何在 SOAP 请求中关闭信封和正文
【发布时间】: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


    【解决方案1】:

    看起来您正在使用旧类型的 rpc/encoded soap api。

    您是否尝试过使用文档/文字服务? (http://api.clickatell.com/soap/document_literal/webservice.php?wsdl)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-11
      • 1970-01-01
      • 1970-01-01
      • 2021-10-04
      • 2021-05-28
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      相关资源
      最近更新 更多