reading post data

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

reading post data

Colin Seaman
Guys,

Can Orbeon read in POST data from any source (say a form from another
server) and have it as a usable variable?  If so,  how is this done?

--
Colin Seaman
Senior Developer
 
Tradocs Ltd,
Tower Point,
44 North Road,
Brighton,
BN1 1YR

email:     [hidden email]
skype:     colin,seaman
telephone: 0870-1417031
website:   http://www.tradocs.net

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email in
error please contact Tradocs. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.
This content of this email is without prejudice.




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: reading post data

Stephen Bayliss
Colin

Have a look at the request generator -
http://www.orbeon.com/ops/doc/processors-generators-request

You should be able to pick up anything you need from the POST using
that.

Steve

-----Original Message-----
From: Colin Seaman [mailto:[hidden email]]
Sent: 11 October 2006 07:49
To: [hidden email]
Subject: [ops-users] reading post data

Guys,

Can Orbeon read in POST data from any source (say a form from another
server) and have it as a usable variable?  If so,  how is this done?

--
Colin Seaman
Senior Developer
 
Tradocs Ltd,
Tower Point,
44 North Road,
Brighton,
BN1 1YR

email:     [hidden email]
skype:     colin,seaman
telephone: 0870-1417031
website:   http://www.tradocs.net

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email in
error please contact Tradocs. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.
This content of this email is without prejudice.







--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: reading post data

Erik Bruchez
Administrator
In reply to this post by Colin Seaman
Colin,

 > Can Orbeon read in POST data from any source (say a form from
 > another server) and have it as a usable variable?  If so, how is
 > this done?

Yes and no.

If you post an XML document using an XML content type, then that will
be automatically parsed and made available on the "instance" input of
page flow actions, models, and views. This is a handy shortcut that
helps a lot, in particular with XForms submissions.

In all the other cases, as pointed out, the oxf:request processor
allows you to access pretty much anything from a request.

If you post something in the multipart/form-data format, for example,
currently you have to use oxf:request, or your own processor, to
extract the data in a meaninful way.

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: reading post data

Colin Seaman
excellent!  Thanks Erik/Stephen
Colin Seaman
Senior Developer
 
Tradocs Ltd,
Tower Point,
44 North Road,
Brighton,
BN1 1YR

email:     [hidden email]
skype:     colin,seaman
telephone: 0870-1417031
website:   http://www.tradocs.net

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in 
error please contact Tradocs. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for 
any damage caused by any virus transmitted by this email.
This content of this email is without prejudice.


Erik Bruchez wrote:
Colin,

> Can Orbeon read in POST data from any source (say a form from
> another server) and have it as a usable variable?  If so, how is
> this done?

Yes and no.

If you post an XML document using an XML content type, then that will
be automatically parsed and made available on the "instance" input of
page flow actions, models, and views. This is a handy shortcut that
helps a lot, in particular with XForms submissions.

In all the other cases, as pointed out, the oxf:request processor
allows you to access pretty much anything from a request.

If you post something in the multipart/form-data format, for example,
currently you have to use oxf:request, or your own processor, to
extract the data in a meaninful way.

-Erik


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws