cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Linz (JIRA)" <>
Subject [jira] Created: (COCOON-1883) SOAPHelper only accepts replies with an XML declaration
Date Wed, 19 Jul 2006 08:55:14 GMT
SOAPHelper only accepts replies with an XML declaration

                 Key: COCOON-1883
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: XSP
    Affects Versions: 2.1.9
            Reporter: Fabian Linz
            Priority: Trivial

The SOAPHelper class [1] forces the SOAP-Reply to start with a XML declaration. I think this
should be removed as the WS-I Soap Binding [2] states that an xml declaration is not necessary.
So a valid WS-I reply may not work with the SOAPHelper at the moment.

Instead of 
            int startOfXML = ret.indexOf("<?xml");
            if (startOfXML == -1) { // No xml?!
                throw new ProcessingException("Invalid response - no xml");
            return new XScriptObjectInlineXML(

I just use
            return new XScriptObjectInlineXML(

I do not know why the position of the declaration is used to substring the answer. Is this
necessary? If so would it be enough to just search for the first opening tag?

[1] blocks/xsp/java/org/apache/cocoon/components/language/markup/xsp/

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message