Re: XML Transformations - using STX?

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Problems-with-xforms-repeat-and-index-tp788711p1575476.html

Steve,

You're saying that you have a SOAP service that returns the complete
form (including the XHTML around it, and everything). Instead of
having this same data on disk in a file somewhere under the resources,
you want to call the web service, and use what it returns as the form.
Is that right?

If it is, what is the information you need to pass to the web service
in the SOAP request?

Alex

On Mon, Mar 1, 2010 at 4:33 PM, Steven Kerr
<[hidden email]> wrote:

> People
>
> Note: first time XForms developer.
>
> Could someone please suggest a good approach to the following simple
> problems?  I have a nice working Orbeon XForm, complete with XSD.  At
> the moment the XML for a sample form is hard-coded into the form model.
> What I want to do is load this dynamically from a web service based on
> the user's input.  I have made a basic test web-service and have been
> able to fetch data from it using a submission.  However it comes back in
> a SOAP envelope.
>
> My questions:
> 1) What is a good way to request the initial information from the user?
> I.e. should I create a simple menu form, store the user's selection in a
> session variable, then load the main form?  This is how I did it with
> jsp
>
> 2) What is the fastest and easiest way to get my form out of the SOAP
> envelope and into the form model?  I assume a simple pipeline, possibly
> using STX would be the way to go?
>
> Notes:
>
> SOAP Response
>
>    <?xml version="1.0" encoding="UTF-8"?>
>    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
>        <S:Body>
>            <ns2:getFormResponse xmlns:ns2="http://lab.soa.packer.com/">
>                <return>***** Complete XML form tree here ****</return>
>            </ns2:getFormResponse>
>        </S:Body>
>    </S:Envelope>
>
> Cheers
>
> Steve
>
>
>
>
> --
> 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet