Hi Jasmin,
Thanks for the reply.
I am using trial version of Lifecycle 8.0 for weblogic. I have already added the client jar in the classpath, when Document which is in the same package as DocumentFileID is visiable, why DocumentFileID is not visable.
Below is the code,
Properties ConnectionProps = new Properties();
ConnectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "t3://143.100.20.46:7051");
ConnectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");
ConnectionProps.setProperty("DSC_SERVER_TYPE", "Weblogic");
ConnectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
ConnectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
// Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);
// Create a ServiceClient object
ServiceClient myServiceClient = myFactory.getServiceClient();
// Create a Map object to store the parameter value
Map params = new HashMap();
// Populate the Map object with a parameter value
// required to invoke the CreatePDF short-lived process
FileInputStream fileInputStream = new FileInputStream("C:\\Adobe\\Report.xml");
System.out.println(fileInputStream.available());
Document inXMLData = new Document (fileInputStream);
System.out.println(inXMLData.toString());
params.put("inXMLData", inXMLData);
// Create an InvocationRequest object
InvocationRequest request = myFactory.createInvocationRequest(
"ProcessName", //Specify the short-lived process name
"invoke", //Specify the operation name
params, //Specify input values
true); //Create a synchronous request
request.setInputParameter("inXMLData", inXMLData);
// Send the invocation request to the short-lived process and
// get back an invocation response
InvocationResponse response = myServiceClient.invoke(request);
Thanks
Raghu