Login  Register

Question on XML submissions

Posted by Robin Diederen on Jan 28, 2010; 4:07pm
URL: https://discuss.orbeon.com/Question-on-XML-submissions-tp1384482.html

Question on XML submissions
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: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws