XML Transformations - using STX?

Posted by Steven Kerr on
URL: https://discuss.orbeon.com/Problems-with-xforms-repeat-and-index-tp788711p1574451.html

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