没有主体元素的WSDL响应

时间:2019-01-22 10:58:37

标签: soap soa tibco-business-works tibco-designer

我受命创建一个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创建服务。

1 个答案:

答案 0 :(得分:0)

您应该在问题中添加更多详细信息。您正在尝试使用SOAP实现什么? SOAP面板和BW SOAP活动会自动创建SOAP消息的结构。在SOAP中,BODY is a mandatory element TIBCO BW有一个SOAP Palette in their documentation。您应该参考文档以获取更多参考。

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