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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

kpritchard
12-Amethyst

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
12-Amethyst
(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
12-Amethyst
(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 III
(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.

Announcements


Top Tags