BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  How to get server URL from server-side service?

    Posted Tue April 04, 2023 06:48 AM

    Hi all,

    We need the run-time url of the currently running server from a server-side service. How can we request that?
    If it is possible to get, the current WSDL URI of a webservice at runtime would be good too. This:


    thx,



    ------------------------------
    Laszlo
    ------------------------------


  • 2.  RE: How to get server URL from server-side service?

    Posted Tue April 04, 2023 08:22 PM

    Hi @Laszlo Kertesz

    If you are good with getting the hostname only, see if REST API 'Retrieve System Details' that provides a 'hostname' in the response works for you. You can add the 'https://' prefix as needed. A simpler way would be to set up an environment variable and enter the specific value for each of your environments there. 

    Although, there would be these and other ways (even undocumented ones) to get the server hostname/URL, typically it is not necessary. Can you please share your use-case? 

    Thank you!



    ------------------------------
    Ajay Katre
    Salient Process
    ------------------------------



  • 3.  RE: How to get server URL from server-side service?

    Posted Wed April 05, 2023 03:32 AM

    Hi,

    the endpoint address is specified in the WSDL itself. Have a look at the address element. It has a location attribute that specifies the endpoint address.

    To get the WSDL URL on a runtime server, go to /ProcessAdmin -> Installed Apps -> Exposed Items -> Web Services. There you should find the created web services with their WSDL URLs



    ------------------------------
    Maximilian Tews
    ------------------------------



  • 4.  RE: How to get server URL from server-side service?

    Posted Wed April 05, 2023 04:55 AM

    Yes, I know, but it would be better to get the url using JavaScript code in a service.



    ------------------------------
    Laszlo
    ------------------------------