application.getServerUrl() returns the wrong server url
Posted: Fri Aug 26, 2016 10:08 am
Hello all,
We have built a web service that give back a max of 200 records. When there are more than 200 records there will be a link at the bottom of the response xml with a new link people can connect to. To build this link we use the application.getServerUrl() + some hard coded code.
The challenge we face right now is that the application.getServerUrl returns localhost:8080/ in the response xml instead of the actual server URL https://autoflex10.nl. When I use logging level to output it in the server log in our application it gives back the actual server URL.
The application and the web-service run on the same server.
Anyone with an idea of where things can go wrong? For us there is nog logic in here.
Thanks in advance
We have built a web service that give back a max of 200 records. When there are more than 200 records there will be a link at the bottom of the response xml with a new link people can connect to. To build this link we use the application.getServerUrl() + some hard coded code.
The challenge we face right now is that the application.getServerUrl returns localhost:8080/ in the response xml instead of the actual server URL https://autoflex10.nl. When I use logging level to output it in the server log in our application it gives back the actual server URL.
The application and the web-service run on the same server.
Anyone with an idea of where things can go wrong? For us there is nog logic in here.
Thanks in advance