我正在使用DB2 Content Manager企業版V8.4.2。要管理我正在使用Web服務的內容管理器。我從URL http://ibmcm/CMBSpecificWebService/services/CMWebService?wsdl
獲得wsdl文件(ibmcm是我安裝內容管理器的服務器的名稱)。IBM內容管理器Web服務未返回正確響應
但是對於RetrieveItemRequest它不會返回正確的響應。所以Apache CXF無法處理響應。任何人面臨這個問題?
請求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema">
<soapenv:Header/>
<soapenv:Body>
<sch:RetrieveItemRequest retrieveOption="CONTENT" contentOption="ATTACHMENTS" version="latest-version" checkout="false">
<!--Optional:-->
<sch:AuthenticationData connectString="" configString="?" connectToWorkflow="false">
<sch:ServerDef>
<!--You may enter the following 2 items in any order-->
<!--Optional:-->
<sch:ServerType>ICM</sch:ServerType>
<sch:ServerName>icmnlsdb</sch:ServerName>
</sch:ServerDef>
<!--You have a CHOICE of the next 2 items at this level-->
<sch:LoginData>
<sch:UserID>icmadmin</sch:UserID>
<sch:Password>password</sch:Password>
</sch:LoginData>
</sch:AuthenticationData>
<!--Zero or more repetitions:-->
<sch:Item URI="http://ibmcm/CMBSpecificWebService/CMBGetPIDUrl?pid=86 3 ICM8 icmnlsdb7 STUDENT59 26 A1001001A14D23B30730I1246518 A14D23B30730I124651 14 1087&server=icmnlsdb&dsType=ICM"/>
</sch:RetrieveItemRequest>
</soapenv:Body>
</soapenv:Envelope>
響應:
您確定您的請求有效嗎? – GuyT
是的。我通過soapUI完成。只有正確的請求。 – SANN3
所以,如果我確實瞭解你的話:當你用soapUI發送請求時,你會得到一個有效的響應和預期的結果?複製soapUI信封請求並將其粘貼到程序中(測試目的)。 – GuyT