You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Kishore Kumar (JIRA)" <ji...@apache.org> on 2019/07/16 23:00:00 UTC
[jira] [Comment Edited] (CONNECTORS-1566) Develop CSWS connector as
a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886536#comment-16886536 ]
Kishore Kumar edited comment on CONNECTORS-1566 at 7/16/19 10:59 PM:
---------------------------------------------------------------------
Hi [~kwright@metacarta.com],
I think the problem is with the initiation of services.
Once I made the below change to CswsSession class and then it worked for me. We need to pass the URLs from constructor to the respective Service
{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
was (Author: kishorekumar):
Hi [~kwright@metacarta.com],
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)