Hello all,
I have this pipeline which produces a XML document after doing some SOAP calls; the pipeline is fired by a submission from a Xforms document.
Now I to use this XML document on another Xforms document and I’m wondering how I can access this data.
From my pageflow: <page id="search-general-submit" path-info="/search/search-general-submit" >
My guess would be that I should an xforms:instance element in the consuming Xforms document referring to the data generated by the pipeline. Is that correct? If so, how would I refer to this data?
Best, Robin -- 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 |
I'm not sure that you can consume the response of a webservice from another xform instead of the calling source xform. But, if you want to consume the response of the webservice in the same xform, watch here:
xxforms:call-xpl
<xf:trigger appearance="xxforms:link"> <xf:label class="button"><xhtml:span class="Prufen">Prüfen</xhtml:span></xf:label>
<xf:action ev:event="DOMActivate"> <xf:insert nodeset="instance('formCheckMessages')"
origin="xxforms:call-xpl( '<<link_to_the_XPL_file>>',
'formData', instance('userResponse'), 'checkMessages')"/>
</xf:action> </xf:trigger>
by this, you are inserting the response of a pipeline into a defined instance. If this is what you are looking for, don't hesitate to ask for more details. regards, Alexandru On Mon, Feb 1, 2010 at 12:30, Robin Diederen <[hidden email]> wrote:
-- 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 |
Hi Alexandra,
Thanks for the quick response.
I doubt however if that would work for my case. This if the "flow" I'm trying to achieve:
Enter data on xform -> page flow sends data to xpl -> xpl fires -> xpl sens data to page flow -> page flow redirects and sends data to xform -> xform picks up data and displays
Isn't this possible? Or is some other way better?
Best, Robin -----Original message----- -- 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 |
yes, this might work quite good, but unfortunately I don't have experience with page-flow, since I'm using the xform integrated in a J2EE (JSP/Spring) application, outside Orbeon.
regards, Alexandru
On Mon, Feb 1, 2010 at 13:21, Robin Diederen <[hidden email]> wrote:
-- 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 |
Hello Alexandra,
Thanks anyway :-).
In case anybody else here knows how to get this data from the pipeline, I'm really interested.
Best, Robin -----Original message----- -- 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 should be able
to just define a page with a view that references your pipeline - if your view
produces a "data" output then that will be received as a response to your
submission.
Alternatively you
can do it with a page with a model, and serialise the output - like this:
http://www.orbeon.com/orbeon/doc/reference-page-flow#d21e2591
-----Original Message-----
From: Robin Diederen [mailto:[hidden email]] Sent: 01 February 2010 11:28 To: [hidden email] Subject: [ops-users] Re: RE: Re: How to use output of a pipeline? Hello Alexandra,
Thanks anyway :-).
In case anybody else here knows how to get this data from the pipeline, I'm really interested.
Best, Robin -----Original message----- -- 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 |
FYI it's the second
approach I've used a number of times, a page with a model, but no view, and the
model serializes the output (with a view you've got the risk of the epilogue
picking up the output and doing its thing on it) - so I'd recommend you go for
the approach in the link below.
Your pipeline should
have an "instance" input to pick up the submission from the page; and no output
- then use oxf:xml-converter followed by oxf:http-serializer to send the output
back to the page. (in the link, the example uses xml-serializer, if you
read the notes here http://www.orbeon.com/orbeon/doc/processors-serializers#legacy-serializers the
recommended approach now is to first use a converter and then use the http
serializer).
Steve
-----Original Message-----
From: Steve Bayliss [mailto:[hidden email]] Sent: 01 February 2010 11:57 To: [hidden email] Subject: [ops-users] RE: Re: RE: Re: How to use output of a pipeline? You should be able
to just define a page with a view that references your pipeline - if your view
produces a "data" output then that will be received as a response to your
submission.
Alternatively you
can do it with a page with a model, and serialise the output - like this:
http://www.orbeon.com/orbeon/doc/reference-page-flow#d21e2591
-----Original Message-----
From: Robin Diederen [mailto:[hidden email]] Sent: 01 February 2010 11:28 To: [hidden email] Subject: [ops-users] Re: RE: Re: How to use output of a pipeline? Hello Alexandra,
Thanks anyway :-).
In case anybody else here knows how to get this data from the pipeline, I'm really interested.
Best, Robin -----Original message----- -- 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 |
Hello Steve,
Thanks for the tips.
I also found this: http://wiki.orbeon.com/forms/how-to/execute-xslt-from-xforms; I guess that's somewhat in line with your suggestions. I like the idea of using an XPL as a service. Any clue if this will work?
Best, Robin -----Original message----- -- 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 |
Hi Robin
Yes, I think xxforms:call-xpl
will also probably do the job for you.
Regards
Steve
-----Original Message-----
From: Robin Diederen [mailto:[hidden email]] Sent: 01 February 2010 15:30 To: [hidden email] Subject: [ops-users] RE: RE: Re: RE: Re: How to use output of a pipeline? Hello Steve,
Thanks for the tips.
I also found this: http://wiki.orbeon.com/forms/how-to/execute-xslt-from-xforms; I guess that's somewhat in line with your suggestions. I like the idea of using an XPL as a service. Any clue if this will work?
Best, Robin -----Original message----- -- 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 |
Free forum by Nabble | Edit this page |