2013-03-07 107 views
3

我想通過... 將Siebel CRM與SAP系統集成問題是:如果我使用SOAP UI來生成SOAP請求,那麼Siebel正在生成的SOAP請求會給我一個錯誤,它工作正常。下面是產生SOAP請求的問題

從的Siebel SOAP請求錯誤的錯誤mesages和SOAP請求:

CX_ST_MATCH_ELEMENT:。系統預期元件 'PiCopyreference'」(SBL-EAI-04308)

不成功的Siebel生成的SOAP請求: -

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
    <SOAP-ENV:Body> 
     <CustomerCreatefromdata1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style"> 
      <PiCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"></PiCompanydata> 
      <PiCopyreference xmlns="urn:sap-com:document:sap:soap:functions:mc-style"> 
       <Salesorg xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0001</Salesorg> 
       <DistrChan xmlns="urn:sap-com:document:sap:soap:functions:mc-style">01</DistrChan> 
       <Division xmlns="urn:sap-com:document:sap:soap:functions:mc-style">01</Division> 
       <RefCustmr xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0000000011</RefCustmr> 
      </PiCopyreference> 
      <PiOptCompanydata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"></PiOptCompanydata> 
      <PiOptPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"> 
       <Transpzone xmlns="urn:sap-com:document:sap:soap:functions:mc-style">0000000001</Transpzone> 
      </PiOptPersonaldata> 
      <PiPersonaldata xmlns="urn:sap-com:document:sap:soap:functions:mc-style"> 
       <TitleP xmlns="urn:sap-com:document:sap:soap:functions:mc-style">MR</TitleP> 
       <Firstname xmlns="urn:sap-com:document:sap:soap:functions:mc-style">FirstN</Firstname> 
       <Lastname xmlns="urn:sap-com:document:sap:soap:functions:mc-style">lastN</Lastname> 
       <City xmlns="urn:sap-com:document:sap:soap:functions:mc-style">SomeCity</City> 
       <PostlCod1 xmlns="urn:sap-com:document:sap:soap:functions:mc-style">7866</PostlCod1> 
       <Country xmlns="urn:sap-com:document:sap:soap:functions:mc-style">AT</Country> 
       <LanguP xmlns="urn:sap-com:document:sap:soap:functions:mc-style">E</LanguP> 
       <Currency xmlns="urn:sap-com:document:sap:soap:functions:mc-style">INR</Currency> 
      </PiPersonaldata> 
     </CustomerCreatefromdata1> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

全成SOAP UI生成的請求: -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <urn:CustomerCreatefromdata1> 
      <PiCompanydata/> 
      <PiCopyreference> 
       <Salesorg>0001</Salesorg> 
       <DistrChan>01</DistrChan> 
       <Division>01</Division> 
       <RefCustmr>0000000011</RefCustmr> 
      </PiCopyreference> 
      <PiOptCompanydata/> 
      <PiOptPersonaldata> 
       <Transpzone>0000000001</Transpzone> 
      </PiOptPersonaldata> 
      <PiPersonaldata> 
       <TitleP>MR</TitleP> 
       <Firstname>FirstN</Firstname> 
       <Lastname>lastN</Lastname> 
       <City>SomeCity</City> 
       <PostlCod1>7866</PostlCod1> 
       <Country>AT</Country> 
       <LanguP>E</LanguP> 
       <Currency>INR</Currency> 
      </PiPersonaldata> 
     </urn:CustomerCreatefromdata1> 
    </soapenv:Body> 
</soapenv:Envelope> 

同樣在siebel中,我使用工作流生成SOAP請求(不涉及腳本)。

回答

2

可能是命名空間問題。在Siebel外部IO中,您可以嘗試在ICField級別禁用命名空間的所有用戶屬性。

+0

感謝您的提示ranjith ...我試過這個,現在的xmlns屬性是不是在除了CustomerCreatefromdata1之外的任何標籤...但仍然是問題是相同的,得到相同的錯誤信息。即使我手動刪除CustomerCreatefromdata1標籤中的xmlns屬性,也沒有任何變化。 – Vic 2013-03-08 06:01:40

+0

讓它工作... 取消激活XMLTAGNAMESPACE字段只是讓子元素繼承父級的名稱空間,同時保持它們的活動狀態並刪除值列。使它工作。 – Vic 2013-03-08 10:06:50