Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 81980 invoked from network); 2 Apr 2006 18:06:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Apr 2006 18:06:18 -0000 Received: (qmail 43077 invoked by uid 500); 2 Apr 2006 18:06:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 43036 invoked by uid 500); 2 Apr 2006 18:06:06 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 43024 invoked by uid 99); 2 Apr 2006 18:06:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Apr 2006 11:06:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Apr 2006 11:06:05 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 815CB6ACB3 for ; Sun, 2 Apr 2006 19:05:44 +0100 (BST) Message-ID: <1856583595.1144001144527.JavaMail.jira@ajax> Date: Sun, 2 Apr 2006 19:05:44 +0100 (BST) From: "Eran Chinthaka (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-422) duplicate xmlns="" attribute in client response In-Reply-To: <176550135.1138812903314.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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/AXIS2-422?page=all ] Eran Chinthaka resolved AXIS2-422: ---------------------------------- Fix Version: 0.96 Resolution: Fixed Fixed in the latest SVN of Axiom > duplicate xmlns="" attribute in client response > ----------------------------------------------- > > Key: AXIS2-422 > URL: http://issues.apache.org/jira/browse/AXIS2-422 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: om > Versions: 0.94 > Environment: Axis2 0.94, Eclipse, Java JDK 1.4.2_09, XP > Reporter: Bryan Allen > Assignee: Eran Chinthaka > Fix For: 0.96 > > I'm using Axis2 0.94 ServiceClient to call a Web service that returns the following XML in the soap body. > This is the XML seen going across the wire with tcptrace. > > > > > Alfred > M > 14 > 69 > 112.5 > >
>
>
> When this XML is parsed in ServiceClient and I serialize it out to file I get the following output: > > > > > Alfred > M > 14 > 69 > 112.5 > >
>
>
> I think this should work as it does work with other web service client implementations. > I tracked it down in the source and it looks like the problem may be in StAXOMBuilder and the code it uses to find or declare namespaces, processNamespaceData(). Looks like there is code there that doesn't handle a namespace with empty string namespace. > Its definitely not optimal that each element has the xmlns="" attribute, but the main problem is the duplicate xmlns attribute that causes the XML to be invalid. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira