Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 82649 invoked from network); 15 Mar 2005 22:48:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Mar 2005 22:48:26 -0000 Received: (qmail 93061 invoked by uid 500); 15 Mar 2005 22:48:25 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 92472 invoked by uid 500); 15 Mar 2005 22:48:23 -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: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 92458 invoked by uid 99); 15 Mar 2005 22:48:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Mar 2005 14:48:23 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j2FMmKkK018857 for ; Tue, 15 Mar 2005 23:48:20 +0100 Message-ID: <1486623298.1110926900585.JavaMail.jira@ajax.apache.org> Date: Tue, 15 Mar 2005 23:48:20 +0100 (CET) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS-1827) Unnecessary empty-valued attribute "xmlns" in Envelope parameter values In-Reply-To: <883124933.1109058411131.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-1827?page=history ] Davanum Srinivas resolved AXIS-1827: ------------------------------------ Resolution: Fixed Closing bug as per jongjin. if you have (and upload) additional tests that shows the wrong behavior, i can reopen the bug. thanks, dims > Unnecessary empty-valued attribute "xmlns" in Envelope parameter values > ----------------------------------------------------------------------- > > Key: AXIS-1827 > URL: http://issues.apache.org/jira/browse/AXIS-1827 > Project: Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.2 > Environment: Windows 2000 Pro SP4 JDK 1.4.2-05 > Reporter: Konstantin Kasatkin > Priority: Blocker > Attachments: AuthService.wsdl > > There is a problem of interaction Axis WebService Client (as console application) with Microsoft WebService Server (as .Net application) > Here WEBService method description is from MS side: > > > > > string > string > string > > string > string > > > > > Here real Axis SOAP envelope is from Java applicaton: > > > > > test > SYS > 100 > > 123 > 234 > > > > > As you can see in section all of inner elements contain attribute xmlns="". > This notation does not work in MS (It is very strange, but I don't know why). > MS ignores all such lines and returns empty collection. > If I'm removing empty "xmlns" attributes all works fine. > I've already found the point where you can place fix code. > CLASS: org.apache.axis.encoding.SerializationContext > CODE: > if (!(map.getNamespaceURI().equals(Constants.NS_URI_XMLNS) && map.getPrefix().equals("xmlns")) && > !(map.getNamespaceURI().equals(Constants.NS_URI_XML) && map.getPrefix().equals("xml"))) > It need to be added one more check in the condition. Here modified condition > if (!(map.getNamespaceURI().equals(Constants.NS_URI_XMLNS) && map.getPrefix().equals("xmlns")) && > !(map.getNamespaceURI().equals(Constants.NS_URI_XML) && map.getPrefix().equals("xml")) && > !map.getNamespaceURI().equals("")) > Maybe I didn't take into account something, but after this change all have worked fine. -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira