backplane-import/backplanejs — Issue #9: xf:submission response with Content-Type header of application/soap+xml is not recognised as XML
Author: backplane-import
Created: 2011-10-15 19:07:09+00:00
State: open
Labels: type-defect

### Imported from backplanejs Google Code [issue 9](http://code.google.com/p/backplanejs/issues/detail?id=9).

Reporter
alex.sansom@webbackplane.com

Date
10 Dec 2009 12:21:35 PM UTC

When using xf:submission with @replace='instance', if the response XML has
a Content-Type header set to application/soap+xml (the product of a SOAP
request), the library generates an xforms-submit-error with an error type
of 'resource-error'.

It's expected that any XML with a Content-Type of application/*+xml would
be treated as XML and not generate xforms-submit-errors.

Example form to follow.