how to setup queryservice using wsdls generated from axis1.4 on jdk 1.4 env
Hi,
I trying to use DFS on jdk 1.4, so Iam using WSDLs generated from axis1.4. Iam able to setup security element and use the objectservices but not the query service.
below is the code snippet::
public void GetElementQuery(String repositoryName)
{
try{
String queryString = "select * from dm_document where object_name like 'doc%'";
QueryServiceLocator querySvcLocator=new QueryServiceLocator();
QueryServicePortBindingStub queryStub= (QueryServicePortBindingStub)querySvcLocator.getQueryServicePort();
queryStub.setHeader(new SOAPHeaderElement(ele));
String[] docbase = new String[1];
docbase[0] = repositoryName;
PassthroughQuery query = new PassthroughQuery();
query.setQueryString(queryString);
query.setRepositories(docbase);
QueryExecution queryEx = new QueryExecution();
queryEx.setCacheStrategyType(CacheStrategyType.DEFAULT_CACHE_STRATEGY);
OperationOptions operationOptions = null;
QueryResult queryResult = queryStub.execute(query, queryEx, operationOptions);
DataPackage resultDp = queryResult.getDataPackage();
DataObject[] dataObjects = resultDp.getDataObjects();
System.out.println("no. of returned objects :: "+dataObjects.length);
}catch (Exception e){
e.printStackTrace();
}
}
##################
The dataobject value returns null even though the query is proper. Can anyone tell me whts wrong with the code.
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax