Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 82908 invoked from network); 9 Oct 2006 20:10:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 20:10:05 -0000 Received: (qmail 33583 invoked by uid 500); 9 Oct 2006 20:10:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 33505 invoked by uid 500); 9 Oct 2006 20:10:02 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 33488 invoked by uid 99); 9 Oct 2006 20:10:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 13:10:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 13:10:01 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56C097142DF for ; Mon, 9 Oct 2006 13:09:23 -0700 (PDT) Message-ID: <5027297.1160424563352.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 13:09:23 -0700 (PDT) From: =?utf-8?Q?J=C3=B6rg_Heinicke_=28JIRA=29?= To: dev@cocoon.apache.org Subject: [jira] Assigned: (COCOON-1883) SOAPHelper only accepts replies with an XML declaration In-Reply-To: <20356783.1153299314017.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1883?page=3Dall ] J=C3=B6rg Heinicke reassigned COCOON-1883: ------------------------------------- Assignee: J=C3=B6rg Heinicke > SOAPHelper only accepts replies with an XML declaration > ------------------------------------------------------- > > Key: COCOON-1883 > URL: http://issues.apache.org/jira/browse/COCOON-1883 > Project: Cocoon > Issue Type: Bug > Components: Blocks: XSP > Affects Versions: 2.1.9 > Reporter: Fabian Linz > Assigned To: J=C3=B6rg Heinicke > Priority: Trivial > > The SOAPHelper class [1] forces the SOAP-Reply to start with a XML declar= ation. I think this should be removed as the WS-I Soap Binding [2] states t= hat an xml declaration is not necessary. So a valid WS-I reply may not work= with the SOAPHelper at the moment. > Instead of=20 > int startOfXML =3D ret.indexOf(" if (startOfXML =3D=3D -1) { // No xml?! > throw new ProcessingException("Invalid response - no xml"= ); > } > return new XScriptObjectInlineXML( > xscriptManager, > ret.substring(startOfXML)); > I just use > return new XScriptObjectInlineXML( > xscriptManager, > ret); > I do not know why the position of the declaration is used to substring th= e answer. Is this necessary? If so would it be enough to just search for th= e first opening tag? > [1] blocks/xsp/java/org/apache/cocoon/components/language/markup/xsp/SOAP= Helper.java > [2] http://www.ws-i.org/Profiles/SimpleSoapBindingProfile-1.0-2004-08-24.= html#XML_Declarations --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira