Web services IBM content manager web服务未返回正确的响应
我使用的是DB2ContentManagerEnterpriseEdition,版本8.4.2。为了管理内容管理器,我正在使用web服务。我从URLWeb services IBM content manager web服务未返回正确的响应,web-services,cxf,db2-content-manager,Web Services,Cxf,Db2 Content Manager,我使用的是DB2ContentManagerEnterpriseEdition,版本8.4.2。为了管理内容管理器,我正在使用web服务。我从URLhttp://ibmcm/CMBSpecificWebService/services/CMWebService?wsdl(ibmcm是我安装content manager的服务器的名称) 但是对于RetrieveItemRequest,它不会返回正确的响应。因此Apache CXF无法处理响应。有人面临这个问题吗 请求: <soapenv:E
http://ibmcm/CMBSpecificWebService/services/CMWebService?wsdl
(ibmcm是我安装content manager的服务器的名称)
但是对于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>
ICM
icmnlsdb
icmadmin
暗语
响应:
<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>
你看过
下面是代码片段。身份验证代码段:
受保护的静态最终字符串身份验证\u数据\u模板=
"<AuthenticationData connectString=\"SCHEMA=ICMADMIN\" configString=\"\">" +
"<ServerDef>" +
"<ServerType>{0}</ServerType>" +
"<ServerName>{1}</ServerName>" +
"</ServerDef>" +
"<LoginData>" +
"<UserID>{2}</UserID>" +
"<Password>{3}</Password>" +
"</LoginData>" +
"</AuthenticationData>"
“”+
"" +
"{0}" +
"{1}" +
"" +
"" +
"{2}" +
"{3}" +
"" +
""
检索带有附件的项目代码段:
protected static final String RETRIEVE_ITEM_WITH_ATTACHMENTS_TEMPLATE =
"<RetrieveItemRequest contentOption=\"ATTACHMENTS\" retrieveOption=\"CONTENT\" " +
"xmlns=\"http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema\">" +
"{0}" +
"<Item URI=\"{1}\"/>" +
"</RetrieveItemRequest>";
protected static final String检索带有附件的项目模板=
"" +
"{0}" +
"" +
"";
尝试添加请求中缺少的
connectString=\“SCHEMA=ICMADMIN\”
。您确定请求有效吗?是。我是通过soapUI完成的。所以,如果我理解正确的话:当你用soapUI发送一个请求时,你会得到一个有效的响应和预期的结果吗?复制您的soapUI信封请求并将其粘贴到您的程序中(测试目的)。相同的错误响应。可能是RetrieveItem
函数工作不正常。soapUI测试必须成功才能继续。您是否已经查看了控制台以查看确切的请求(网络选项卡)?你能发布检索项
功能吗?我在请求中添加了。但在发布时,我删除了它。