Is it possible to have a sample application using XForms 1.1 SOAP submission?
My use case is the following:
I have a doc-oriented web service operation, that consumes and returns an XML doc valid against some XML Schema.
I want an XForm page to submit into that web service operation (using POST).
I would also like the sample to include fault-management (what happens in case an exceptions gets thrown).
Thank you in Advance,
Kostis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To use SOAP submission the mediatype attribute of the submission must be set to "application/soap+xml;action=NameOfService".
SOAP faults (400 and 500 level errors) are handled in the same manner as underlying HTTP errors, which is to say that an xforms-submit-error event is dispatched.
I could not test this feature very well and i'm interested in your opinion.
Rewards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And indeed, by searching through the code (from CVS) i found that line:
[XFormsLibrary.java:89]:
registerAttribute("mediatype", new StringAttributeCreator(null, "image/*"));
Am i missing something here?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is it possible to have a sample application using XForms 1.1 SOAP submission?
My use case is the following:
I have a doc-oriented web service operation, that consumes and returns an XML doc valid against some XML Schema.
I want an XForm page to submit into that web service operation (using POST).
I would also like the sample to include fault-management (what happens in case an exceptions gets thrown).
Thank you in Advance,
Kostis
To use SOAP submission the mediatype attribute of the submission must be set to "application/soap+xml;action=NameOfService".
SOAP faults (400 and 500 level errors) are handled in the same manner as underlying HTTP errors, which is to say that an xforms-submit-error event is dispatched.
I could not test this feature very well and i'm interested in your opinion.
Rewards
When i set the 'mediatype' as instructed, the compiler throw:
[error][14, 118][attribute: mediatype] Value not valid: application/soap+xml;action=doDoc
I event tried not to set the action part on the mediatype, just like this:
<xf:submission mediatype="application/soap+xml" ...>
but still nothing.
And indeed, by searching through the code (from CVS) i found that line:
[XFormsLibrary.java:89]:
registerAttribute("mediatype", new StringAttributeCreator(null, "image/*"));
Am i missing something here?