HTTP POST service request heraders

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

HTTP POST service request heraders

kushp


How to configure a POST service in Orbeon for the following request. Below is the request captured using Chrome Network panel.






--
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 POST service request heraders

Alessandro  Vernet
Administrator
What do you mean by "configure a POST request"? What specifically would you
like to configure? What are you trying to achieve?

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
Reply | Threaded
Open this post in threaded view
|

Re: HTTP POST service request heraders

kpatel
Sorry for the vague description. I'm trying to set a POST HTTP request from
Orbeon to access my system resources. But while testing it, the login screen
of my system is returned back. Obviously, as the request sent from Orbeon
was not authenticated, this is the expected behavior. The question here is,
how to make the POST HTTP service call similar so that my application server
will allow it to access the resources. In effect, I want to set the session
parameters in the POST HTTP service call sent from Orbeon, which will make
it belong to an existing session. Thus I've posted the screenshot of one of
my POST call from the system client to the system server resource.

Kush

--
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 POST service request heraders

kushp
In reply to this post by Alessandro Vernet
Sorry for the vague description. I'm trying to set a POST HTTP request from Orbeon to access my system resources. But while testing it, the login screen of my system is returned back. Obviously, as the request sent from Orbeon was not authenticated, this is the expected behavior. The question here is, how to make the POST HTTP service call similar so that my application server will allow it to access the resources. In effect, I want to set the session parameters in the POST HTTP service call sent from Orbeon, which will make it belong to an existing session. Thus I've posted the screenshot of one of my POST call from the system client to the system server resource.

On Friday, February 9, 2018 at 10:39:01 PM UTC+5:30, Alessandro Vernet wrote:
What do you mean by "configure a POST request"? What specifically would you
like to configure? What are you trying to achieve?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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 POST service request heraders

kushp
In reply to this post by Alessandro Vernet
Also, I find no appropriate examples for the HTTP POST service in the documentation provided by Orbeon. There's one for GET call. Please provide apt examples for all serialization types of POST service.

On Friday, February 9, 2018 at 10:39:01 PM UTC+5:30, Alessandro Vernet wrote:
What do you mean by "configure a POST request"? What specifically would you
like to configure? What are you trying to achieve?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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 POST service request heraders

Alessandro  Vernet
Administrator
Hi Kush,

It seems that you would like call to the service to forward the session id
cookie (typically `JSESSIONID`) received from the browser. You can do so by
setting the  `oxf.http.forward-cookies` property. For more on this, see:

https://doc.orbeon.com/configuration/properties/general.html#cookies-forwarding

You'll let me know if this helps.

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
Reply | Threaded
Open this post in threaded view
|

Re: HTTP POST service request heraders

Alessandro  Vernet
Administrator
Hi Kush,

Did forwarding the session cookie to your service with the
`oxf.http.forward-cookies` property work for you?

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