Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 55303 invoked from network); 6 Jan 2004 14:13:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Jan 2004 14:13:20 -0000 Received: (qmail 83318 invoked by uid 500); 6 Jan 2004 14:13:07 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 83308 invoked by uid 500); 6 Jan 2004 14:13:07 -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: Delivered-To: mailing list axis-user@ws.apache.org Delivered-To: moderator for axis-user@ws.apache.org Received: (qmail 71582 invoked from network); 6 Jan 2004 14:05:33 -0000 X-Originating-IP: [193.120.171.241] X-Originating-Email: [beagleboythefirst@hotmail.com] X-Sender: beagleboythefirst@hotmail.com From: "tom ONeill" To: axis-user@ws.apache.org Bcc: Subject: XML within string parameter to RPC Service Date: Tue, 06 Jan 2004 14:05:34 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Jan 2004 14:05:35.0076 (UTC) FILETIME=[2778FA40:01C3D45E] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I am going to be using Axis to invoke an RPC style web service which takes a single string parameter. This string parameter is going to contain an XML message. What I am wondering is if I need to wrap this String in a CDATA section before I invoke the web service? >From reading the XML specification it says that character data consists of any text that does not contain markup. However my string value will contain markup. I have tested invoking the web service without wrapping my String in a CDATA section and have found that Axis has changed all the markup characters into their respective entity references (i.e. < has become < ). What Im wondering is why Axis is doing this? Im not sure how it creates its SOAP messages but from a brief glance of the code I guess it uses DOM (rather than plain String manipulation ). From looking at the DOM API it does not mention anything about the createTextNode method parsing the text content and expanding markup to use entity references? Any recommendations or pointers as to what should influence whether the text should be wrapped in a CDATA section would help.... Cheers, Tom _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail