HTTP Services - Host in URLs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP Services - Host in URLs

bwallis42

I'm configuring some HTTP services in the builder and was wondering what
hostname to use in the URLs to get to the same host that the Orbeon server
is running on. I believe that the REST service is invoked on the server
side, not the client, in which case a hostname of localhost should work
fine.

Is this correct?


Thanks,
brian...


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: HTTP Services - Host in URLs

Alessandro  Vernet
Administrator
Hi Brian,

Yes, localhost should be fine. And if you're targeting a service that runs
in the Orbeon Forms app, you can just use a path starting with `/`. As in:
/fr/service/custom/orbeon/echo. This way you don't even have to hardcode in
your app the context on which Orbeon Forms is deployed.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet