2016-10-21 97 views
0

我通過調用活動與引用綁定,在綁定選項卡中調用Soap服務我使用soapui模擬參數(主機,端口:in http客戶端和URI),當調試我面臨這個錯誤:soapAction「」和body元素「」肥皂版本1.1缺少操作BW6

[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文件:

<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> 

在此先感謝

回答

0

Tibco的BW 6.3.2刪除包含的soapAction由於一個錯誤的標題 - >升級版本6.3.3,這個問題是固定的

0

很顯然,該請求是基於故障信息丟失soapAction頭。

請添加適當的值soapAction

+0

問題是SOAP動作在WSDL存​​在 –

+0

好了,請求必須擁有它。 – Rao

+0

我正在使用Tibco BW 6我只是映射輸入消息,我認爲這會自動生成 –