cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

kpritchard
4-Participant

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

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.

3 REPLIES 3
VINO
4-Participant
(To:kpritchard)

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.

kpritchard
4-Participant
(To:VINO)

Thanks Vino,

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

Thanks!

LoriSood
22-Sapphire II
(To:kpritchard)

Hi Keir,

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

Top Tags