Re: passing XML document as input parameter

2006-05-21 Thread Xinjun Chen
iginal Message-From: Suavi Ali Demir [mailto: [EMAIL PROTECTED]]Sent: Wednesday, May 17, 2006 10:45 AMTo: 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:  

Re: passing XML document as input parameter

2006-05-21 Thread Xinjun Chen
Hi Dies,   Thank you very much for sharing this with me. :) This is really very helpful to me.   Regards, Xinjun  On 5/19/06, Dies Koper <[EMAIL PROTECTED]> wrote: Hello Xinjun,Forgot to mention in my previous reply, but you could use an xsd:any type:   This m

RE: passing XML document as input parameter

2006-05-20 Thread Ken Tam
: 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"   wh

Re: passing XML document as input parameter

2006-05-18 Thread Dies Koper
Hello Xinjun, Forgot to mention in my previous reply, but you could use an xsd:any type: This maps to a Javabean called Ctype with a property of type SOAPElement. SOAPElement implements org.w3c.dom.Element, so you get a parsed piece of DOM on the oth

Re: passing XML document as input parameter

2006-05-18 Thread Ali Demir
Well, there is more escaping to do than just <. Also, watch out for CDATA sections that may appear. Maybe you can find a function that is written to stream XML out to a string. There should be one ready to use out there. Regards, Ali At 01:19 AM 5/18/2006, you wrote: Suavi,   Thank you very muc

Re: passing XML document as input parameter

2006-05-18 Thread Xinjun Chen
Suavi,   Thank you very much for your remind. What do you mean by "more escaping than just '<' "? Do you mean I also need to convert "&" to "&", and etc? I try to pass XML "a < b && c > d ", the string at the service side is " a < b && c > d ". There may be other special cha

Re: passing XML document as input parameter

2006-05-17 Thread Suavi Ali Demir
Don't forget you might have xml as:   "X < Y"   Now, if you process this string and make:   "X < Y"   When you reverse it, you will get:   "X < Y"   which is incorrect.   So, you will need more escaping than just "<".   Regards, AliXinjun Chen <[EMAIL PROTECTED]

Re: passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
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 <[EMAIL PROTECTED]> 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

Re: passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
all the tags will be changed to ">" and "<", right?   Regards, Xinjun  On 5/17/06, Suavi Ali Demir <[EMAIL PROTECTED]> wrote: Why can you not embed xml inside xml? Regards, Ali Xinjun Chen <[EMAIL PROTECTED]> wrote: As far as I know, I cannot embed XML inside XML, so how can I pass an XML do

Re: passing XML document as input parameter

2006-05-17 Thread Dies Koper
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 <[EMAIL PROTECTED]> wrote: As far as I

Re: passing XML document as input parameter

2006-05-17 Thread Suavi Ali Demir
Why can you not embed xml inside xml? Regards, AliXinjun Chen <[EMAIL PROTECTED]> 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

passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
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