Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 32092 invoked from network); 10 Jan 2005 11:43:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jan 2005 11:43:55 -0000 Received: (qmail 52675 invoked by uid 500); 10 Jan 2005 11:43:55 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 52655 invoked by uid 500); 10 Jan 2005 11:43:55 -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 52638 invoked by uid 99); 10 Jan 2005 11:43:55 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mtagate3.uk.ibm.com (HELO mtagate3.uk.ibm.com) (195.212.29.136) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 10 Jan 2005 03:43:53 -0800 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate3.uk.ibm.com (8.12.10/8.12.10) with ESMTP id j0ABho5M220916 for ; Mon, 10 Jan 2005 11:43:50 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j0ABiBij095684 for ; Mon, 10 Jan 2005 11:44:11 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id j0ABhnt0021699 for ; Mon, 10 Jan 2005 11:43:49 GMT Received: from d06ml063.portsmouth.uk.ibm.com (d06ml063.portsmouth.uk.ibm.com [9.149.38.83]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id j0ABhnr4021686 for ; Mon, 10 Jan 2005 11:43:49 GMT In-Reply-To: <1105354245.1114.58.camel@localhost.localdomain> Subject: Re: setUri() API - Usage To: "Apache AXIS C Developers List" Cc: Apache AXIS C Developers List X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Andrew Perry2 Date: Mon, 10 Jan 2005 11:48:04 +0000 X-MIMETrack: Serialize by Router on D06ML063/06/M/IBM(Release 6.51HF338 | June 21, 2004) at 10/01/2005 11:48:04 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N createNamespaceDecl does add the namespace too, but calling addNamespace shouldn't stop things working. The add should check for duplicates so our customers don't have to know how to avoid such pitfalls, or have read every line of the API documentation. Regards, Andrew Perry IBM C/C++ Web Services Client perryan@uk.ibm.com Mail Point 127 IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN Tel. Internal 249828 External + 44 (0)1962 819828 Fax. + 44(0)1962 818080 Roshan Weerasuriya wrote on 10/01/2005 10:50:45: > 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 > > > > > > > >