0

我的任务是创建一个 SOAP Web 服务,并且响应不应该具有如下的 body 元素

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><ns0:Response xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="http://www.tibco.com/schemas/Schema.xsd8" xmlns:ns0="http://www.tibco.com/schemas/Schema.xsd8"><ns0:ResponseRefId>236514</ns0:ResponseRefId><ns0:ResponseCode>9999</ns0:ResponseCode><ns0:ResponseMsg>Authentication Failed, try again with correct credentials</ns0:ResponseMsg>      </ns0:Response></SOAP-ENV:Header></SOAP-ENV:Envelope>

我担心的是是否有可能创建一个响应没有正文元素的 SOAP 服务。我正在使用 Tibco BW 5 创建服务。

4

1 回答 1

0

您应该为您的问题添加更多详细信息。您想通过使用 SOAP 来实现什么?SOAP 面板和 BW SOAP 活动自动创建 SOAP 消息的结构。在 SOAP 中,BODY 是一个强制元素 TIBCO BW在他们的文档中有一个 SOAP Palette。您应该参考文档以获取更多参考。

我建议您扩展问题以更好地帮助您。

于 2019-01-24T22:06:19.073 回答