Login  Register

Re: Question on XML submissions

Posted by HankRatz on Jan 28, 2010; 5:00pm
URL: https://discuss.orbeon.com/Question-on-XML-submissions-tp1384482p1387950.html

<base href="x-msg://248/">Robin,

I realize you are including snippets, but I want to check that your submission and instance 
elements are all in the html head element.

I often trace the steps in my xpl files by using the xml-serializer to quickly look exactly what
is submitted and transformed at each step.  I comment out, e.g., the http serializer and 
reference the input or output of each step.  (or use the logs and debug as you do...)

In the page-flow.xml, I always use the model attribute to specify a pipeline.  I'm not 
sure what the effect is of using xsl within the pageflow -- is it possible?

If your submission replace attribute is "all", then you probably don't also need an 
action in the page flow, since the replace will "take you to a new page" as the 
action will, loading a new url in the browser address bar.

I'm not much help with a specific diagnosis, but if we knew that your submission 
was reaching a target xpl script (even if it just serializes the submitted data 
back), that would be some help to understand.

Cheers,
Hank

On Jan 28, 2010, at 8:07 AM, Robin Diederen wrote:

Hello all,
 
I'm quite new to Orbeon and kind of stuck. So I'm hoping for some help here... :).
 
I've got this Xform which' data I want to submit to a XPL; it's the submission I can't get working. What I actually want to do is submit an XML document composed from data on my form to the XML pipeline in order to perform some SOAP calls there.

 

First some code snippets from my Xform

           

BODY
<h3 class="form-section-heading">Submit</h3>
<div class="form-section">
<xforms:submit submission="submission">
<xforms:label>Verstuur</xforms:label>
</xforms:submit>

 

MODEL
<xforms:submission action="/myapp/submit" id="submission" replace="all" >
<xforms:message ev:event="xforms-submit-error" level="modal">An error occurred: <xforms:output value="event('error-type')"/></xforms:message>

 

From the page-flow.xml:
<page id="submit" path-info="/myapp/submit" >
<action action="oxf:/myapp/pipeline.nl">
<result page="result" transform="oxf:xslt">
<data xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:copy-of select="doc('input:action')//output"></xsl:copy-of>
</data>
</result>
</action>
</page>

 

And my pipeline (first part):
<p:param type="input" name="instance" debug="debug" />
        <p:processor name="oxf:xforms-submission">
          <p:input name="submission" href="#instance" />
          <p:output name="data" id="response"/>
        </p:processor>

When I submit this data, all I see on my form is a message saying "xxforms-internal-error". In orbeon.log I find "2010-01-28 16:45:16,661 ERROR XFormsServer  - XForms - submission - xforms-submit-error throwable: java.lang.NullPointerException" and that's all. My guess I'm submitting the information the wrong way, but I wouldn't have a clue how to solve this.

 

Best, 
            

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







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