Skip to main content
1-Visitor
June 14, 2017
Question

How to Authenticate Windchill in a JSP

  • June 14, 2017
  • 2 replies
  • 4557 views

Hi,

I'm creating a JSP that would list all the groups of a specified organisation in the Windchill.

To prevent the authentication window, I'm trying to use RemoteMethodServer API and the suggested method of authentication from CS254321 in PTC K-Base.

But i still get the authentication window when i try to access this JSP.

Any help?

Capture.PNG

2 replies

1-Visitor
June 14, 2017

How are you calling this JSP? Is it from an action from Windchill or a stand alone? If it is a standalone and if the JSP is in one of the protected resource locations, you will not be able to access the resource without authentication.

aarasan-31-VisitorAuthor
1-Visitor
June 14, 2017

Hi Binesh,

Thanks for replying.

It is a standalone JSP and it resides in the <WT_HOME>\netmarkets\jsp.

Is there any other way that i can achieve my need? My actual requirement is to get the list of groups from an organisation in Windchill and process it in an external Java code, and in future try to add some users to an existing group. Any suggestions.

1-Visitor
June 14, 2017

What if you explicitly set the username and password?

rms.setUserName("wcadmin");

rms.setPassword("pwd");

12-Amethyst
November 8, 2019

Hi aarasan-3,

 

Did you ever solve this problem? I have the same problem now and maybe you can help me with this?

 

Thanks