首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对于soap 1.1版BW6,缺少soapAction "“和正文元素"”的操作

对于soap 1.1版BW6,缺少soapAction "“和正文元素"”的操作
EN

Stack Overflow用户
提问于 2016-10-21 20:34:20
回答 2查看 11.5K关注 0票数 2

我通过带有引用绑定的invoke活动调用Soap服务,在binding选项卡中,我使用soapui Mock参数(主机、端口:在http客户端和URI中),在调试时,我会遇到这个错误:

代码语言:javascript
复制
[Fatal Error] :1:1: Content is not allowed in prolog.

11:15:58.805 ERROR [bwEngThread:In-Memory Process Worker-5] com.tibco.bw.core - TIBCO-BW-CORE-500050: The BW process [Applications.DOM_OPALE.CLOE.CreationBondecommande.CreationBonDeCommande_1-SOAPExtClient] instance faulted, JobId [bw0a102], ProcessInstanceId [bw0a102], ParentProcessInstanceId [bw0a101], Module [ProcessorBusinessShared:1.0.0.0], Application [CloeAdapterOut.application:1.0]. 

   <CausedBy> TIBCO-BW-CORE-500052: Invoke activity [CreationBonDeCommande] fault. 

   <CausedBy> com.tibco.bw.binding.soap.DefaultFault: TIBCO-BW-BINDING-SOAP-550100: Received SOAP Fault from the service provider of the Operation [{OPA}CreationBonDeCommande], SoapReferenceBinding [SOAPReferenceBinding], Application [CloeAdapterOut.application:1.0].  SOAP Fault received: [<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>Server</faultcode>
            <faultstring>Missing operation for soapAction [rpc/OPA:CreationBonDeCommande] and body element [CreationBonDeCommande] with SOAP Version [SOAP 1.1]</faultstring>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>
]

有什么想法吗?

下面是wsdl文件:

代码语言:javascript
复制
<message name="CreationBonDeCommande_Input">
    <part name="InputMessage" type="xsdLocal0:InputTopElmtData"/>
</message>
<message name="CreationBonDeCommande_Output">
    <part name="OutputMessage" type="xsdLocal1:OutputTopElmtData"/>
</message>

<portType name="OPA_CreationBonDeCommande">
    <operation name="CreationBonDeCommande">
        <input message="tns:CreationBonDeCommande_Input"/>
        <output message="tns:CreationBonDeCommande_Output"/>
    </operation>

</portType>

<binding name="OPA_CreationBonDeCommande" type="tns:OPA_CreationBonDeCommande">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="CreationBonDeCommande">
        <soap:operation soapAction="rpc/OPA:CreationBonDeCommande" />
        <input>
            <soap:body namespace="OPA" use="literal"/>
        </input>
        <output>
            <soap:body namespace="OPA" use="literal"/>
        </output>
    </operation>
</binding>
<service name="OPA_CreationBonDeCommande_WS">
    <port binding="tns:OPA_CreationBonDeCommande" name="OPA_CreationBonDeCommande">
        <soap:address location="http://<web_server></web_server>/eai_fra/start.swe?SWEExtSource=WebService&amp;SWEExtCmd=Execute&amp;UserName=sadmin&amp;Password=sadmin"/>
    </port>
</service>

提前感谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-10-27 16:05:03

Tibco BW 6.3.2删除包含soapAction的头部-->升级到6.3.3,问题已修复

票数 0
EN

Stack Overflow用户

发布于 2016-10-21 20:39:40

很明显,根据故障消息,该请求缺少soapAction标头。

请添加具有相应值的soapAction

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40176816

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档