[
https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886536#comment-16886536
]
Kishore Kumar commented on CONNECTORS-1566:
-------------------------------------------
Hi [[email protected]],
I think the problem is with the initiation of services.
When you create a instance of CswsSession, we need to pass the respective
service URLs to the constructor from the configuration, once that is done, it
should worked.
Once I made this change to CswsSession class and then it worked for me.
{code:java}
public CswsSession(final String userName,
final String password,
final long sessionExpirationInterval,
final String authenticationServiceURL,
final String documentManagementServiceURL,
final String contentServiceServiceURL,
final String memberServiceServiceURL,
final String searchServiceServiceURL) throws ManifoldCFException {
// Save username/password
this.userName = userName;
this.password = password;
// Save expiration interval
this.sessionExpirationInterval = sessionExpirationInterval;
// Construct service references from the URLs
try {
this.authService = new Authentication_Service(new
URL(authenticationServiceURL));
this.documentManagementService = new DocumentManagement_Service(new
URL(documentManagementServiceURL));
this.contentServiceService = new ContentService_Service(new
URL(contentServiceServiceURL));
this.memberServiceService = new MemberService_Service(new
URL(memberServiceServiceURL));
this.searchServiceService = new SearchService_Service(new
URL(searchServiceServiceURL));
} catch (java.net.MalformedURLException me){
throw new ManifoldCFException("Web Service URL is Malformed:
"+me.getMessage(), me);
} catch (javax.xml.ws.WebServiceException e) {
throw new ManifoldCFException("Error initializing web services:
"+e.getMessage(), e);
}
........
}
{code}
!chrome_cgfC00ujx7.png!
Thanks,
Kishore
> Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
> ------------------------------------------------------------------------------
>
> Key: CONNECTORS-1566
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1566
> Project: ManifoldCF
> Issue Type: Task
> Components: LiveLink connector
> Affects Versions: ManifoldCF 2.12
> Reporter: Karl Wright
> Assignee: Karl Wright
> Priority: Major
> Fix For: ManifoldCF 2.14
>
> Attachments: chrome_cgfC00ujx7.png
>
>
> LAPI is being deprecated. We need to develop a replacement for it using the
> ContentServer Web Services API.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)