Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 57576 invoked from network); 10 Jan 2005 12:10:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jan 2005 12:10:54 -0000 Received: (qmail 90412 invoked by uid 500); 10 Jan 2005 12:10:54 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 90300 invoked by uid 500); 10 Jan 2005 12:10:54 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 90274 invoked by uid 99); 10 Jan 2005 12:10:54 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ausmtp02.au.ibm.com (HELO ausmtp02.au.ibm.com) (202.81.18.187) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 10 Jan 2005 04:10:52 -0800 Received: from sd0112e0.au.ibm.com (d23rh903.au.ibm.com [202.81.18.201]) by ausmtp02.au.ibm.com (8.12.10/8.12.10) with ESMTP id j0AC8Kkr040150 for ; Mon, 10 Jan 2005 23:08:20 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.250.242]) by sd0112e0.au.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j0ACCnB0125482 for ; Mon, 10 Jan 2005 23:12:49 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.12.11/8.12.11) with ESMTP id j0ACAkGc013212 for ; Mon, 10 Jan 2005 23:10:46 +1100 Received: from d23m0174.in.ibm.com (d23m0174.in.ibm.com [9.182.98.15]) by d23av01.au.ibm.com (8.12.11/8.12.11) with ESMTP id j0ACAiO2013187 for ; Mon, 10 Jan 2005 23:10:45 +1100 In-Reply-To: <1105354245.1114.58.camel@localhost.localdomain> To: "Apache AXIS C Developers List" MIME-Version: 1.0 Subject: Re: setUri() API - Usage X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: James Jose Date: Mon, 10 Jan 2005 17:39:50 +0530 X-MIMETrack: Serialize by Router on d23m0174/23/M/IBM(Release 6.51HF653 | October 18, 2004) at 10/01/2005 17:39:50, Serialize complete at 10/01/2005 17:39:50 Content-Type: multipart/alternative; boundary="=_alternative 0043329F65256F85_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 0043329F65256F85_= Content-Type: text/plain; charset="US-ASCII" Hi Roshan, There is no API which creates the namespace declaration without adding to the HeaderBlock. If createNamespaceDecl() creates and add the namespace to the HeaderBlock , what is the advantage of having an API addNamespaceDecl() ? I am just trying to understand the necessity of addNamespaceDecl() API and how it can be used. Regards James -------------------------------------------------- James Jose Messaging Clients Team, WMQDDC IBM Software Labs, India Direct: 91-80- 25094331 Ext :2331 E-mail: jamejose@in.ibm.com Roshan Weerasuriya 10/01/2005 16:20 Please respond to "Apache AXIS C Developers List" To Apache AXIS C Developers List cc Subject Re: setUri() API - Usage hi James, > Also I have some doubt about functionality of addNamespaceDecl() - if you use the ".. *attr=phb->createNamespaceDecl()" method it will create and also add the namespace declaration to the HeaderBlock. So you don't need to explictly call the "phb->addNamespaceDecl(attr)" and if you do so it will duplicate the namespcae declartion. (We use a list internaly so it just add the second one also). That causes this problem of server receiving a invalied content. It is mentioned in the createNamespaceDecl() API comments that it creates and adds. Roshan On Mon, 2005-01-10 at 10:03, Roshan Weerasuriya wrote: > hi James, > > > Any idea about setUri() API in IAttribute class. > There seems to be a problem here. I will correct it. Thanks for pointing > it out. > > Roshan > > On Fri, 2005-01-07 at 12:48, James Jose wrote: > > Roshan, > > > > Any idea about setUri() API in IAttribute class. > > > > Also I have some doubt about functionality of addNamespaceDecl() - > > > > I tried the following code. > > IHeaderBlock > > *phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.com"); > > IAttribute > > *attr=phb->createNamespaceDecl("np","http://apache.com"); > > phb->addNamespaceDecl(attr); > > > > This generates the following SOAP header and results in an Exception. > > > xmlns:np="http://apache.com" > > xmlns:np="http://apache.com"> > > > > > > API documentation for addNamespaceDecl() says it sets the namespace > > declaration of the Header Block. > > > > > > > > > > Thanks in advance.. > > > > James > > -- > > James Jose > > Messaging Clients Team, WMQDDC > > IBM Software Labs, India > > Direct: 91-80- 25094331 Ext :2331 > > E-mail: jamejose@in.ibm.com > > > > > > > > > > James Jose/India/IBM@IBMIN > > > > 04/01/2005 18:35 > > Please respond to > > "Apache AXIS C Developers List" > > To > > axis-c-dev@ws.apache.org > > cc > > > > Subject > > setUri() API - > > Usage > > > > > > > > > > > > Hi > > > > I have used setUri() API in the IAttribute class. But it is not > > changes the SOAP message anyway. > > ie its not updated the namespace URI associated with the attribute > > prefix in SOAP Message. > > > > So I just want to know why this API is used. > > > > Thanks in advance > > James > > > > -- > > James Jose > > Messaging Clients Team, WMQDDC > > IBM Software Labs, India > > Direct: 91-80- 25094331 Ext :2331 > > E-mail: jamejose@in.ibm.com > > > > --=_alternative 0043329F65256F85_= Content-Type: text/html; charset="US-ASCII"
Hi Roshan,

There is no API which  creates the namespace declaration without adding to the HeaderBlock. If createNamespaceDecl() creates and add the namespace to the HeaderBlock , what is the advantage of having an API addNamespaceDecl() ? I am just trying to understand the necessity of addNamespaceDecl() API and how it can be used.

Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com




Roshan Weerasuriya <roshan@opensource.lk>

10/01/2005 16:20
Please respond to
"Apache AXIS C Developers List"

To
Apache AXIS C Developers List <axis-c-dev@ws.apache.org>
cc
Subject
Re: setUri() API - Usage





hi James,

>    Also I have some doubt about functionality of addNamespaceDecl() -

if you use the ".. *attr=phb->createNamespaceDecl()" method it will
create and also add the namespace declaration to the HeaderBlock. So you
don't need to explictly call the "phb->addNamespaceDecl(attr)" and if
you do so it will duplicate the namespcae declartion. (We use a list
internaly so it just add the second one also). That causes this problem
of server receiving a invalied content.

It is mentioned in the createNamespaceDecl() API comments that it
creates and adds.

Roshan

On Mon, 2005-01-10 at 10:03, Roshan Weerasuriya wrote:
> hi James,
>
> >    Any idea about setUri() API in IAttribute class.
> There seems to be a problem here. I will correct it. Thanks for pointing
> it out.
>
> Roshan
>
> On Fri, 2005-01-07 at 12:48, James Jose wrote:
> > Roshan,
> >
> >     Any idea about setUri() API in IAttribute class.
> >    
> >    Also I have some doubt about functionality of addNamespaceDecl() -
> >
> >  I tried the following code.
> > IHeaderBlock
> > *phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.com");
> >                 IAttribute
> > *attr=phb->createNamespaceDecl("np","http://apache.com");
> >                 phb->addNamespaceDecl(attr);
> >
> > This generates the following SOAP header and results in an Exception.
> > <SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://axis.com"
> > xmlns:np="http://apache.com"
> > xmlns:np="http://apache.com"></ns2:TestHeader></SOAP-ENV:Header>
> > <SOAP-ENV:Body>
> >
> > API documentation for addNamespaceDecl() says it sets the namespace
> > declaration of the Header Block.
> >
> >
> >
> >
> > Thanks in advance..
> >
> > James
> > --
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com
> >
> >
> >
> >
> > James Jose/India/IBM@IBMIN
> >
> > 04/01/2005 18:35
> >          Please respond to
> >   "Apache AXIS C Developers List"
> >                To
> > axis-c-dev@ws.apache.org
> >                cc
> >
> >           Subject
> > setUri() API -
> > Usage
> >
> >
> >
> >
> >
> > Hi
> >
> >   I have used setUri() API in the IAttribute class. But it is not
> > changes the SOAP message anyway.
> >   ie its not updated the namespace URI associated with the attribute
> > prefix in SOAP Message.
> >
> >   So I just want to know why this API is used.
> >
> >   Thanks in advance
> >     James
> >
> > --
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com
> >
>
>


--=_alternative 0043329F65256F85_=--