Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 53957 invoked from network); 20 May 2006 22:46:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2006 22:46:01 -0000 Received: (qmail 28126 invoked by uid 500); 20 May 2006 22:45:53 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 28110 invoked by uid 500); 20 May 2006 22:45:53 -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 28099 invoked by uid 99); 20 May 2006 22:45:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2006 15:45:52 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [204.127.192.83] (HELO rwcrmhc13.comcast.net) (204.127.192.83) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2006 15:45:51 -0700 Received: from kentamlt (c-67-161-20-18.hsd1.ca.comcast.net[67.161.20.18]) by comcast.net (rwcrmhc13) with SMTP id <20060520224530m1300gigc2e>; Sat, 20 May 2006 22:45:30 +0000 Reply-To: From: "Ken Tam" To: Subject: RE: passing XML document as input parameter Date: Sat, 20 May 2006 15:45:18 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0284_01C67C24.658527D0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20060517174434.80929.qmail@web30605.mail.mud.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0284_01C67C24.658527D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all, There are quite a few postings on this topic. Another (preferred) alternative is to pass XML as an attachment. Regards, Ken -----Original Message----- From: Suavi Ali Demir [mailto:demir4@yahoo.com] Sent: Wednesday, May 17, 2006 10:45 AM To: axis-user@ws.apache.org Subject: Re: passing XML document as input parameter Don't forget you might have xml as: "X < Y" Now, if you process this string and make: "<formula>X < Y</formula>" When you reverse it, you will get: "X < Y" which is incorrect. So, you will need more escaping than just "<". Regards, Ali Xinjun Chen wrote: Hi Dies, Thank you! You are right. In fact I can do that :-). Just need to replace all "<" by "<". Regards, Xinjun On 5/17/06, Dies Koper wrote: Hello Xinjun, Just use a String type field. Axis will replace the '<'s and '>'s in your XML with '<'s resp. '>'s, making it valid XML content. Regards, Dies Suavi Ali Demir wrote: > Why can you not embed xml inside xml? > Regards, > Ali > > Xinjun Chen < xjchen001@gmail.com> wrote: > As far as I know, I cannot embed XML inside XML, so how can I pass an XML document as an input parameter to a web service? > Could anyone provide some pointer on that? > > Regards, > Xinjun ------=_NextPart_000_0284_01C67C24.658527D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 all,
 
There=20 are quite a few postings on this topic. Another (preferred) alternative = is to=20 pass XML as an attachment.
 
Regards,
Ken
-----Original Message-----
From: Suavi Ali Demir=20 [mailto:demir4@yahoo.com]
Sent: Wednesday, May 17, 2006 = 10:45=20 AM
To: axis-user@ws.apache.org
Subject: Re: = passing XML=20 document as input parameter

Don't forget you might have xml as:
 
"<formula>X &lt; Y</formula>"
 
Now, if you process this string and make:
 
"&lt;formula>X &lt; Y&lt;/formula>"
 
When you reverse it, you will get:
 
"<formula>X < Y</formula>"
 
which is incorrect.
 
So, you will need more escaping than just "<".
 
Regards,
Ali

Xinjun Chen <xjchen001@gmail.com>=20 wrote:
Hi Dies,
 
Thank you! You are right. In fact I can do that :-). Just need = to=20 replace all "&lt;" by "<".  

Regards,
Xinjun
 
On 5/17/06, Dies=20 Koper <dies@jp.fujitsu.com> = wrote:=20
Hello=20 Xinjun,

Just use a String type field.
Axis will replace = the=20 '<'s and '>'s in your XML with '&lt;'s resp. =
'&gt;'s,=20 making it valid XML = content.

Regards,
Dies


Suavi Ali=20 Demir wrote:
> Why can you not embed xml inside=20 xml?
>   Regards,
>   = Ali
>
>=20 Xinjun Chen <=20 xjchen001@gmail.com> wrote:
>     = As far=20 as I know, I cannot embed XML inside XML, so how can I pass an XML = document as an input parameter to a web = service?
>   Could=20 anyone provide some pointer on that?
>
>  =20 Regards,
>  =20 = Xinjun




------=_NextPart_000_0284_01C67C24.658527D0--