Skip to main content
1-Visitor
September 28, 2014
Question

Any API's for accessing (WTPart) IBA's from remote client?

  • September 28, 2014
  • 1 reply
  • 1382 views

LWCNormalizedObject is supported server side only, so I'm getting the exception reminding me of that when attempting to use in a remote client (Java class invoked from the Windchill Shell).

Is there something I can use without needing to run a "fake" workflow to get the code to execute "server side"? My preference is a Customer visible API or a really detailed usage, syntax etc.

1 reply

12-Amethyst
October 10, 2014

Hi Keir,

Why don't you use RemoteMethodServer. Try in this way.

RemoteMethodServer rms = RemoteMethodServer.getDefault();

rms.setUserName("wcadmin");

rms.setPassword("wcadmin");

Class argTypes[] = new Class[] {};

Object argValues[] = new Object[] {};

rms.invoke("yourMethod", YourClass.getName(), null, argTypes, argValues);

yourMethod() has to have those LWCNormalized API's.

Let me know if any additional details needed.

1-Visitor
October 30, 2014

Thanks Vino,

I'll give that a try. Am I reading correctly in that argTypes[] and argValues[] are empty Vectors?

Thanks!

23-Emerald II
November 3, 2014

Hi Keir,

Did you have luck with Vino's suggestion? I believe your reading of the code and the empty vectors is correct.