Hi
I am trying to download a Node and am following the CWS Code Samples (Java). I am getting the Token String without any issues and when i get to the point where I need to get the Context ID so that I can start with my download, I get the Error: "ns0:Core.LoginFailed : The parameter is incorrect."
Your direction and advice will be highly appreciated. Thanks
/*** Get and store the content id for the download
* */
private void getContextId(DocumentManagement docManClient) {
String contextID =
null; // Store the context ID for the download
try {
System.out.print("getContextId: Generating context ID...");
if(docManClient != null){
contextID = docManClient.getVersionContentsContext(
DOCUMENT_ID , 0);
System.out.println("SUCCESS!\n");
createContentService(contextID); //The content service method
} else {System.out.println("docManClient-object is Null");}
}catch (SOAPFaultException e) {
System.out.println("FAILED!\n");
System.out.println(e.getFault().getFaultCode() + " : " + e.getMessage());
}
}
Regards,
Jack