我正在使用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