Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 92052 invoked from network); 19 Jul 2007 14:34:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2007 14:34:08 -0000 Received: (qmail 5788 invoked by uid 500); 19 Jul 2007 14:33:42 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 5726 invoked by uid 500); 19 Jul 2007 14:33:42 -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 5715 invoked by uid 99); 19 Jul 2007 14:33:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 07:33:42 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of xjchen001@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 07:33:38 -0700 Received: by wx-out-0506.google.com with SMTP id h29so505078wxd for ; Thu, 19 Jul 2007 07:33:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tqPzomdrtyDoBKWQsU6wKbFyL8VcZsRRcsD+9QA1wrR/bQUOFNzqAqXecHjoOH4pxVk9Vh1eirXXFokRoY1HdAzq2jGYrRus234QHCkhNmZgqnYRLyk23W7GjKNY8aSbk3gmhpdfpUSg/BdQRPGSroudi8I86vTOxEC/MqKdfXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=G6PC46AwqaipHuUBcnk7ixM0vdKRJ+w8poFS1O7hmVHWAReXPKLIDHX/NQetJW3Pei/+NCRLUGjyiVgnSH7nkkj/pz1UZjbT1dAnlaOFnT5c5QhbUrTXHAobdgK9lLsw7wsWciuMdPRaCkLqyIzXM9OcxzaO4m69rjyMXiMOa5Q= Received: by 10.90.71.3 with SMTP id t3mr2818710aga.1184855597704; Thu, 19 Jul 2007 07:33:17 -0700 (PDT) Received: by 10.90.116.3 with HTTP; Thu, 19 Jul 2007 07:33:17 -0700 (PDT) Message-ID: <84f31d220707190733i45ea29c7l945a6ba51f260b11@mail.gmail.com> Date: Thu, 19 Jul 2007 22:33:17 +0800 From: "Xinjun Chen" To: axis-dev@ws.apache.org Subject: Fwd: [AXIOM] Undeclare default namespace In-Reply-To: <84f31d220707182154j563785b8l9b9ad868bf4c3788@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_130192_2206257.1184855597678" References: <84f31d220707182154j563785b8l9b9ad868bf4c3788@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_130192_2206257.1184855597678 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Axis2 Developers, Is it possible to undeclare a default namespace from an OMElement in AXIOM? I tried several ways but failed to undeclare a default namespace. Could anyone point me a way out? Thanks. Regards, Xinjun ---------- Forwarded message ---------- From: Xinjun Chen Date: Jul 19, 2007 12:54 PM Subject: [AXIOM] Undeclare default namespace To: axis-user@ws.apache.org Hi, I have some problem undeclaring the default namespace in an OMElement. I have tried the following three ways but all failed. The default namespace is still in the OMElement. #1: OMElement reqElement = ....; reqElement.declareDefaultNamespace(""); #2: OMElement reqElement = ....; reqElement.declareNamespace("", ""); #3: OMElement reqElement = ....; OMFactory omFactory = reqElement.getOMFactory(); OMNamespace ns = omFactory.createOMNamespace("", ""); reqElement.declareNamespace(ns); Could anyone point me out what I can do to undeclare the default namespace in AXIOM? Thanks for your help in advance. Regards, Xinjun ------=_Part_130192_2206257.1184855597678 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Axis2 Developers,
 
Is it possible to undeclare a default namespace from an OMElement in AXIOM?
I tried several ways but failed to undeclare a default namespace. Could anyone point me a way out?
Thanks.
 
Regards,
Xinjun

---------- Forwarded message ----------
From: Xinjun Chen <xjchen001@gmail.com>
Date: Jul 19, 2007 12:54 PM
Subject: [AXIOM] Undeclare default namespace
To: axis-user@ws.apache.org

 
Hi,
 
I have some problem undeclaring the default namespace in an OMElement.
I have tried the following three ways but all failed. The default namespace is still in the OMElement.
 
#1:
        OMElement reqElement = ....;
        reqElement.declareDefaultNamespace("");
 
#2: 
        OMElement reqElement = ....;       
        reqElement.declareNamespace("", "");
 
#3:
        OMElement reqElement = ....;
        OMFactory omFactory = reqElement.getOMFactory();
        OMNamespace ns = omFactory.createOMNamespace("", "");       
        reqElement.declareNamespace(ns);
 
Could anyone point me out what I can do to undeclare the default namespace in AXIOM? Thanks for your help in advance.
 
Regards,
Xinjun
------=_Part_130192_2206257.1184855597678--