the response is easy, just set the content type to "text/xml" or whatever it is for 
XML,
then just write the XML data to the stream

to receive xml, just do request.getParameter() assuming your XML is embedded in a POST 
request, and assigned to a variable.

to send xml from a client, download commons-httpclient, construct a POST request, set 
the XML in a variable and send it off

tomcat will not accept pure XML data on the socket, as it expects the data to be HTTP

Filip

----- Original Message -----
From: "tom ly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 30, 2004 3:36 PM
Subject: How do I send and receive raw XML data(not SOAP) to and from Tomcat


I'm familiar with using AXIS webservices to send SOAP-XML to Tomcat and back.  But how 
do i receive a request and send a response
with raw XML data so that I can then parse the request with SAX?

Thanks so much,
Tom


---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to