1. Luc Railhac
  2. PowerServer
  3. Friday, 8 November 2024 08:02 AM UTC

Hi,

Our main app is a PB 2022 R3 application but we have a lot of satellite Java web apps in our information system.

If we move to PowerServer, which if I understand well is a.NET server using REST APIs, can a Java web app call it, for instance to display a datawindow on a web page?

Thanks

 

Who is viewing this page
Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 November 2024 07:17 AM UTC
  2. PowerServer
  3. # Permalink
Yes, you could call PowerServer's Web APIs, but those Web APIs are generated for a PB client so it's returning the entire DW result set with DW buffer info. The best practice approach would be to open up the generated C# code for the Web APIs in SnapDevelop and scaffold your own services and controllers using the non-PB Client template. It would reuse the same DataWindows in the PowerServer project... so all you doing is creating the API interface, which if you just want a standard interface SnapDevelop does automatically for you. So then all you need to do in terms of manual coding is add user authentication.
Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Saturday, 9 November 2024 01:31 AM UTC
  2. PowerServer
  3. # 1

Web APIs do not have any UI.  So if you call the Web API it will just return the raw JSON data.  Then it would be up to your Java Web app how it displays that data returned from the Web API.  

Comment
  1. Luc Railhac
  2. Monday, 11 November 2024 03:47 AM UTC
Thanks for your answer, I'm aware of this and should have said "to use the data returned by a datawindow". My main question was actually if PowerServer API was "public" and usable by an external app, or "private" and only usable by the PB client.
  1. Helpful
  1. Luc Railhac
  2. Tuesday, 12 November 2024 07:17 AM UTC
Thanks a lot for this detailed answer, this is very helpful!
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 12 November 2024 15:46 PM UTC
You're very welcome!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.