You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2019/07/16 23:09:36 UTC
svn commit: r1863183 -
/manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
Author: kwright
Date: Tue Jul 16 23:09:36 2019
New Revision: 1863183
URL: http://svn.apache.org/viewvc?rev=1863183&view=rev
Log:
Get the services working
Modified:
manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
Modified: manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java?rev=1863183&r1=1863182&r2=1863183&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java (original)
+++ manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java Tue Jul 16 23:09:36 2019
@@ -22,6 +22,9 @@ import java.util.List;
import java.util.Map;
import java.util.HashMap;
+import java.net.URL;
+import java.net.MalformedURLException;
+
import java.io.OutputStream;
import java.io.IOException;
@@ -133,12 +136,14 @@ public class CswsSession
// Construct service references from the URLs
try {
this.authService = new Authentication_Service();
- this.documentManagementService = new DocumentManagement_Service();
- this.contentServiceService = new ContentService_Service();
- this.memberServiceService = new MemberService_Service();
- this.searchServiceService = new SearchService_Service();
+ 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 (javax.xml.ws.WebServiceException e) {
throw new ManifoldCFException("Error initializing web services: "+e.getMessage(), e);
+ } catch (MalformedURLException e) {
+ throw new ManifoldCFException("Malformed URL: "+e.getMessage(), e);
}
// Initialize authclient etc.
this.authClientHandle = authService.getBasicHttpBindingAuthentication();