> Alex
>
> To clarify my question. Below is a simple example of what I am trying to do. I have used in-line documents to make it clear. The below seems to be a waste of processing as it is copying almost all of the base documents as is. Does Orbeon currently support using streaming transformations and if so how can that be applied to the below?
>
> Cheers
>
> Steve
>
> **************************************************
>
> <p:config xmlns:p="
http://www.orbeon.com/oxf/pipeline"
> xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
> xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns2="
http://lab.soa.packer.com/"
> xmlns:oxf="
http://www.orbeon.com/oxf/processors">
>
> <p:param name="data" type="output"/>
> <p:processor name="oxf:xslt">
> <p:input name="data">
> <S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
> <S:Body>
> <ns2:getFormResponse xmlns:ns2="
http://lab.soa.packer.com/">
> <return>
> <resultsForms>
> <resultsForm/>
> </resultsForms>
> </return>
> </ns2:getFormResponse>
> </S:Body>
> </S:Envelope>
> </p:input>
> <p:input name="config">
> <xsl:stylesheet version="1.0">
> <xsl:template match="/S:Envelope/S:Body/ns2:getFormResponse/return/resultsForms" >
> <xsl:copy-of select="."/>
> </xsl:template>
> </xsl:stylesheet>
> </p:input>
> <p:output name="data" ref="data"/>
> </p:processor>
> </p:config>
>
> **************************************************
>
> Output:
> <resultsForms>
> <resultsForm/>
> </resultsForms>
>
> **************************************************
>
>
>
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:
[hidden email]]
> Sent: Wednesday, 3 March 2010 04:41
> To:
[hidden email]
> Subject: [ops-users] Re: XML Transformations - using STX?
>
> 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>
>