HTTP Service

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

HTTP Service

cronos-2
Hello,

I would like to pull data from a remote server and use it to populate fields in
an orbeon form. To get the data, i intend to use ajax.

Having taking a look at orbeon form builder it looks like the enabling tool is
the HTTP service.

I have a few questions.

(1) Is the HTTP service in form builder the place to do this?

(2) Can I use an ajax library (i.e. jquery) to make the ajax call and process response?

(3) After getting the data from the ajax call, how do i then populate the fields via form builder?

(4) What is the right format to send the ajax response in (XML or JSON)?


Regards


Sirus


Reply | Threaded
Open this post in threaded view
|

Re: HTTP Service

cronos-2
I have solved by initial problem but I still need help. Yes, the
http service and action are the tools i need to accomplish my
goal. however I have identified a problem.

The remote service is written in C++, i can use xml-rpc to
consume this service however the orbeon http service
supports REST and SOAP services.

Is their a work around that would enable me use xml-rpc
within the http service?

Reply | Threaded
Open this post in threaded view
|

Re: HTTP Service

Erik Bruchez-3
In reply to this post by cronos-2
XML-RPC is XML on the wire. It's just a very verbose way of packing
values depending on their type. But if you can observe the format on
the wire, you can produce an XML document will be accepted by your
service.

-Erik

On Sun, Jun 28, 2009 at 7:06 AM, cronos<[hidden email]> wrote:

>
> Hello,
>
> I would like to pull data from a remote server and use it to populate fields
> in
> an orbeon form. To get the data, i intend to use ajax.
>
> Having taking a look at orbeon form builder it looks like the enabling tool
> is
> the HTTP service.
>
> I have a few questions.
>
> (1) Is the HTTP service in form builder the place to do this?
>
> (2) Can I use an ajax library (i.e. jquery) to make the ajax call and
> process response?
>
> (3) After getting the data from the ajax call, how do i then populate the
> fields via form builder?
>
> (4) What is the right format to send the ajax response in (XML or JSON)?
>
>
> Regards
>
>
> Sirus
>
>
>
> --
> View this message in context: http://www.nabble.com/HTTP-Service-tp24241793p24241793.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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
>
>


--
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