简体   繁体   English

没有主体元素的WSDL响应

[英]WSDL Response without body element

I've been tasked to create a SOAP web service and the response isn't supposed to have the body element like below 我受命创建一个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>

my concern is whether it's possible to create a SOAP service that has a response with no body element. 我担心的是,是否有可能创建一个没有主体元素的响应的SOAP服务。 I am using Tibco BW 5 to create the service. 我正在使用Tibco BW 5创建服务。

You should add some more details to your question. 您应该在问题中添加更多详细信息。 What are you trying to achieve by using SOAP? 您正在尝试使用SOAP实现什么? SOAP palette and BW SOAP activities automatically create the structure of the SOAP message. SOAP面板和BW SOAP活动会自动创建SOAP消息的结构。 In SOAP the BODY is a mandatory element TIBCO BW has a SOAP Palette in their documentation . 在SOAP中, BODY是必填元素, TIBCO BW 在其文档中具有SOAP Palette You should refer to the documentation for further reference. 您应该参考文档以获取更多参考。

I suggest you expand the question to help you better. 我建议您扩展问题以帮助您更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM