Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 44653 invoked from network); 13 Dec 2007 02:18:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 02:18:16 -0000 Received: (qmail 17368 invoked by uid 500); 13 Dec 2007 02:17:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 17354 invoked by uid 500); 13 Dec 2007 02:17:57 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 17343 invoked by uid 99); 13 Dec 2007 02:17:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 18:17:57 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [142.73.64.14] (HELO MSXYVR1.ds.mda.ca) (142.73.64.14) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 02:17:33 +0000 Received: from VMXYVR2.ds.mda.ca ([142.73.129.71]) by MSXYVR1.ds.mda.ca with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Dec 2007 18:17:32 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Axis2] trimming down the xml in axis2 1.3 Date: Wed, 12 Dec 2007 18:17:29 -0800 Message-ID: In-Reply-To: <457264.75635.qm@web63910.mail.re1.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Axis2] trimming down the xml in axis2 1.3 Thread-Index: Acg9K8+gR5Y00IlLSgyOHQzMGrXcNwAAC/GA References: <457264.75635.qm@web63910.mail.re1.yahoo.com> From: "Alastair FETTES" To: X-OriginalArrivalTime: 13 Dec 2007 02:17:32.0357 (UTC) FILETIME=[51673F50:01C83D2E] X-Virus-Checked: Checked by ClamAV on apache.org Hi Samir. First off let me state that I understand about not changing the clients of your webservice and feel your pain. I agree that you can't just go changing your clients because of a COTS product upgrade. :) My point was more along the lines of the fact that I wasn't sure _why_ they have to change. The two XML documents that you showed are technically equivalent: 0 Success Is this not technically the same as...? (except for the type attribute on the return?) 0 Success Would the first and second not both validate off the same XML Schema? Unless they aren't XML aware readers. Alastair -----Original Message----- From: samir shaikh [mailto:aquasamba@yahoo.com]=20 Sent: Wednesday, December 12, 2007 5:59 PM To: axis-user@ws.apache.org Subject: RE: [Axis2] trimming down the xml in axis2 1.3 Alastair, I have a very convincing argument for glorified text readers who want to hit a url and get text back to use my service. Rather then custom coding all that I've configured Axis2 to accept HTTP GET parameters as input and return back an xml, just as it would for an xml call. If I can somehow configure my response to them the same as what it was with axis1.1.1 i.e. without the "ns:" in the field tags then I'll be able to not force a change on their end.=20 This is what I return back. - - 0 Success This is what they expect - - 0 Success Samir --- Alastair FETTES wrote: > Samir. >=20 > If your clients can't handle the difference between xmlns:ns=3D"foo">0 and xmlns=3D"foo">0 then I wouldn't bother using SOAP or web=20 > services. > These are equivalent > in XML. I can understand suppressing the prefix in regards to=20 > efficency and the size of the message but not to support a client that > doesn't handle XML properly. >=20 > Otherwise it's just a glorified text reader... >=20 > Alastair >=20 > -----Original Message----- > From: samir shaikh [mailto:aquasamba@yahoo.com] > Sent: Wednesday, December 12, 2007 5:31 PM > To: axis-user@ws.apache.org > Subject: Re: [Axis2] trimming down the xml in axis2 > 1.3 >=20 > Martin, >=20 > You mean using QName in the client code? >=20 > I'm trying to tune my server to not send back excessive xml. I cannot=20 > change the xml I send back to my clients. the extra "ns:" is causing=20 > me trouble after upgrading from axis2 1.1.1 to axis2 > 1.3 e.g. > 0. My clients expect=20 > 0. >=20 > Samir >=20 > --- Martin Gainty wrote: >=20 > > you can always use null..e.g. > > QName paramQName =3D new QName("", paramName); > >=20 > > M-- > > ----- Original Message ----- > > From: "samir shaikh" > > To: > > Sent: Wednesday, December 12, 2007 7:20 PM > > Subject: RE: [Axis2] trimming down the xml in > axis2 > > 1.3 > >=20 > >=20 > > > Raghu, > > > > > > Thanks for your help. I tried that out but I > want > > to > > > suppress it on the server. I think WSDL2Java is > > for > > > generating a client, right? > > > > > > I'm hoping to find some configuration in > > services.xml > > > or axis2.xml... any idea? > > > > > > Samir > > > > > > > > > --- Raghu Upadhyayula > > > > wrote: > > > > > > > Samir, > > > > > > > > Try WSDL2Java with -sp option to suppress the > namespace prefix. > > > > > > > > Thanks > > > > Raghu > > > > > > > > -----Original Message----- > > > > From: samir shaikh > [mailto:aquasamba@yahoo.com] > > > > Sent: Wednesday, December 12, 2007 2:20 PM > > > > To: axis-user@ws.apache.org > > > > Subject: [Axis2] trimming down the xml in > axis2 > > 1.3 > > > > > > > > Hi, > > > > > > > > I'm trying to trim down the xml exchanged when > > using > > > > a > > > > axis2 client and server. Is there a way I can > configure the > > > > serializer to not prefix namespace with every > element e.g. > > 0 > > > > can > > > > just be 0. Also not send > > back > > > > the additional headers and field types with > each call. > > > > I was able to do that in Axis1.3 with the wsdd > > file. > > > > Can someone point me to where that is done in > > Axis2. > > > > > > > > Thanks a lot. > > > > > > > > Samir > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________________ > > > > ____________ > > > > Be a better friend, newshound, and know-it-all > with Yahoo! Mobile. >=20 > > > > Try it now. > > > > > > > > > > http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > axis-user-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: > > > > axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > axis-user-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: > > > > axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________________ > ____ > > ________ > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > > > Try it now. > > > http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: > > axis-user-help@ws.apache.org > > > > > > > >=20 > >=20 > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: > > axis-user-help@ws.apache.org > >=20 > >=20 >=20 >=20 >=20 > =20 > ________________________________________________________________________ > ____________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAcJ >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org >=20 =3D=3D=3D message truncated =3D=3D=3D =20 ________________________________________________________________________ ____________ Looking for last minute shopping deals? =20 Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=3Dshopping --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org