<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OData data from within JSP code? in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929626#M471</link>
    <description>&lt;P&gt;No, I am asking about a Java API callable from some JSP in the Windchill server.&lt;/P&gt;
&lt;P&gt;Thanks for your insight Petr&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 09:21:28 GMT</pubDate>
    <dc:creator>rleir</dc:creator>
    <dc:date>2024-02-13T09:21:28Z</dc:date>
    <item>
      <title>OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929378#M469</link>
      <description>&lt;P&gt;Team&lt;/P&gt;
&lt;P&gt;Is it possible to GET OData data from within JSP code? Calling to some Java interface within WRS, so I can pass in some OData parameters and receive the Windchill data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The JSP code is invoked after user authentication, so I would not want to be re-authenticating in the call to WRS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 13:46:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929378#M469</guid>
      <dc:creator>rleir</dc:creator>
      <dc:date>2024-03-15T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929411#M470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/310062"&gt;@rleir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess if you call RestApi you need to authenticate even though you call it from Windchill page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone can correct me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I call rest api from thingworx that is set with Windchill wit SSO, if I call rest api, I need to authenticate the call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may do something wrong but I have to do so.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 14:37:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929411#M470</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-02-12T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929626#M471</link>
      <description>&lt;P&gt;No, I am asking about a Java API callable from some JSP in the Windchill server.&lt;/P&gt;
&lt;P&gt;Thanks for your insight Petr&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:21:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929626#M471</guid>
      <dc:creator>rleir</dc:creator>
      <dc:date>2024-02-13T09:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929629#M472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/310062"&gt;@rleir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is simple&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;&amp;lt;%@ page import="cz.aveng.AVWPublish.AVPublishConfigure" %&amp;gt;
&amp;lt;%
AVPublishConfigure.reloadConfigData();
%&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;PetrH&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:22:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/929629#M472</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-02-13T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/945764#M7961</link>
      <description>&lt;P&gt;Petr, tell more about your import&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-javascript"&gt;&lt;CODE&gt;"cz.aveng.AVWPublish.AVPublishConfigure"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It would be your company's product, but I did not see it on the web site.&amp;nbsp; Can you tell more please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to be clear, I have a user running some JSP (so they are currently logged in) and I want the JSP to get data from OData without having to re-authenticate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And there is likely a better way to get access to the data, but this way I can re-use an algorithm based on accesses to OData.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:18:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/945764#M7961</guid>
      <dc:creator>rleir</dc:creator>
      <dc:date>2024-04-24T10:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: OData data from within JSP code?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/945772#M7962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/310062"&gt;@rleir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The import is just example of my own class and how to call the method from JSP page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use any classes what you need from the Windchill.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My class contains my own methods that do something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you call the ODATA from JSP you always need to authenticate even though the user session is logged in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The OData RestAPI are usually used outside the Windchill and it is designed for it. If you don't want to reauthenticate you need to use some SSO method same as from thingworx.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: you can not retrieve a password from the user. It is not possible because it would be a security black hole.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use universal user to authenticate for the Odata call. so you would have static user and psw that can be used from your own config. ...&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:58:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/OData-data-from-within-JSP-code/m-p/945772#M7962</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-04-24T10:58:04Z</dc:date>
    </item>
  </channel>
</rss>

