Hi Martin,
Thanks for your quick reply. Your response partly resolves my issue. Another main issue I here have is: what data type should I return? I mean, I would like to return XML content from webservice, so, should that be a String, byte[],.? And which would be better in terms of ease, security? Thanks in advance. Thank You, Shravan Kumar. M ----------------------------- _____ From: Martin Gainty [mailto:[email protected]] Sent: Thursday, January 22, 2009 8:07 PM To: [email protected] Subject: RE: How to Return XML data from a webservice and how is it consumed? SOAP is an XML format which includes envelope/body/fault/service specifications http://www.w3schools.com/soap/soap_intro.asp A very simple example is located at http://www.w3schools.com/soap/soap_example.asp You can include constructed *complex* XML dataTypes In your data definitions as illustrated here <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> http://www.w3schools.com/Schema/el_complextype.asp Is this what you're looking for ? Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. _____ From: [email protected] To: [email protected] Subject: How to Return XML data from a webservice and how is it consumed? Date: Thu, 22 Jan 2009 18:16:40 +0530 Hi, Can anyone advise me, how return XML data from a webservice? Also, how a client consuming this service should interpret the output, I mean what type of data can they expect? Thanks in advance. Thank You, Shravan Kumar. M ----------------------------- _____ Windows LiveT HotmailR:.more than just e-mail. Check it out. <http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explor e_012009>
