PFC/XPL as HTTP/REST Proxy

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

PFC/XPL as HTTP/REST Proxy

Mats Eklund-2
Hi,

Can the PFC/XPL framework be used to proxy REST requests, including GET, POST,
PUT and DELETE requests? I would like to consume an existing REST service, but
only indirectly via a proxy that can rewrite certain sections of the XML
payload, both on insert and retrieval (GET and POST/PUT).

Thanks,
Mats


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: PFC/XPL as HTTP/REST Proxy

Mats Eklund-2
Hi,

I'm still wondering whether this is possible. I suspect that only GET and POST requests are processed through the Page Flow Controller, not PUT and DELETE, and hence it is not possible to use it as a REST Proxy, is that right? At least not w/o rewriting the HTTP verb...

Thanks for any help!
Mats

--- On Thu, 5/28/09, [hidden email] <[hidden email]> wrote:

From: [hidden email] <[hidden email]>
Subject: [ops-users] PFC/XPL as HTTP/REST Proxy
To: [hidden email]
Date: Thursday, May 28, 2009, 10:33 PM

Hi,

Can the PFC/XPL framework be used to proxy REST requests, including GET, POST,
PUT and DELETE requests? I would like to consume an existing REST service, but
only indirectly via a proxy that can rewrite certain sections of the XML
payload, both on insert and retrieval (GET and POST/PUT).

Thanks,
Mats

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: PFC/XPL as HTTP/REST Proxy

Mats Eklund-2
In reply to this post by Mats Eklund-2
Ok, just discovered it works! The issue I had was on the back-end side. I had to allow all HTTP verbs on the relevant requests on IIS.

--- On Sat, 5/30/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: PFC/XPL as HTTP/REST Proxy
To: [hidden email]
Date: Saturday, May 30, 2009, 10:45 PM

Hi,

I'm still wondering whether this is possible. I suspect that only GET and POST requests are processed through the Page Flow Controller, not PUT and DELETE, and hence it is not possible to use it as a REST Proxy, is that right? At least not w/o rewriting the HTTP verb...

Thanks for any help!
Mats

--- On Thu, 5/28/09, [hidden email] <[hidden email]> wrote:

From: [hidden email] <[hidden email]>
Subject: [ops-users] PFC/XPL as HTTP/REST Proxy
To: [hidden email]
Date: Thursday, May 28, 2009, 10:33 PM

Hi,

Can the PFC/XPL framework be used to proxy REST requests, including GET, POST,
PUT and DELETE requests? I would like to consume an existing REST service, but
only indirectly via a proxy that can rewrite certain sections of the XML
payload, both on insert and retrieval (GET and POST/PUT).

Thanks,
Mats

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: PFC/XPL as HTTP/REST Proxy

Erik Bruchez
Administrator
In reply to this post by Mats Eklund-2
> Can the PFC/XPL framework be used to proxy REST requests, including  
> GET, POST,
> PUT and DELETE requests? I would like to consume an existing REST  
> service, but
> only indirectly via a proxy that can rewrite certain sections of the  
> XML
> payload, both on insert and retrieval (GET and POST/PUT).

For specific cases, certainly. For example the Form Runner eXist  
persistence layer acts very much like a proxy.

Check for example:

   http://tinyurl.com/nchdhq

To be fully generic, It should be possible as well. I remember  
starting writing such a proxy a while ago (but not completing it  
unfortunately!).

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws