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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

how to get data from OData from within JSP

rleir
17-Peridot

how to get data from OData from within JSP

Team

Is it possible to GET OData data from within JSP code? It would GET from the local Windchill (localhost). 

Do I have an authentication problem? 

1 ACCEPTED SOLUTION
4 REPLIES 4
rleir
17-Peridot
(To:HelesicPetr)

Petr:

As for authentication, I can see how in the JSP to get the username. Is the usr:pwd needed in the OData URL when the call is within Windchill?

cheers -- Rick 

HelesicPetr
22-Sapphire I
(To:rleir)

Usually you need login with a password to open new session. 

I would say if you communicate with windchill you need to authenticate

PetrH

rleir
17-Peridot
(To:HelesicPetr)

Petr:

But the user is already authenticated, for example

domain.com/Windchill/wtcore/jsp/test/dynAuth.jsp

rleir_0-1707331311242.png

or domain.com/Windchill/app/#wtcore/jsp/test/dynAuth.jsp

rleir_1-1707331705125.png

The user will not want to enter her password again. I can get the username from "<%=request.getRemoteUser()%>" and insert it in the WRS URL, but  not the password.

No, scrub this question because there could not be a way to get the password here. It would be a major security problem.

Top Tags