Re: Re: Re: From java servlet to orbeon context
Posted by
Alessandro Vernet on
Jul 17, 2009; 11:11pm
URL: https://discuss.orbeon.com/From-java-servlet-to-orbeon-context-tp44958p44963.html
Hi Bart,
<quote author="bartottenkamp">
I thought of:
- trying to call some orbeon functionallity in my own java code to turn the
complete node into a stripped one that only has the relevant nodes.. You do
this somewhere in orbeon code, don't you? Can I call this code? Since I have
the context available?
- Using <xforms:submission anyway with replace="instance" and
instance="result"...
</quote>
I would do the latter. (In fact, I often prefer the latter to using xxforms:call-xpl(), as it is more standard, easier to debug, and also exposes that functionality to other systems if needed.)
bartottenkamp wrote
I guess (hope) the latter is possible, but I get the message:
"XFormsServer - XForms - submission - instance replacement did not take
place upon successful response because no body was provided. Submission:
mail-submission"
Is this because the service doesn't return anything? If this is the case, then you can use replace="none". If it is supposed to return something but that the XForms engine says the body of the response is empty, I'd recommend you use an HTTP sniffer to figure out what is really going over the wire.
Alex