Hello everyone.. I have successfully used SOAP to make a telephone directory Web service.
Right now I am returning "String" as return type from my Web service method back to the client and my client displays the string in HTML based browser. I was wondering if there is a way by which I can return the "XML" response (or XML return type) from SOAP web service method to client code which will parse the XML to produce Stylesheet-based tabular output. Here's the section of code from my SOAP method, I was trying to play with: /*** variable declaration***/ String mainStr; ..... ..... /*** assigning initial value to mainStr****/ mainStr = "<?xml version=\"1.0\"?> "; ....... ...... .. /*** creation of recordset based on some SQL query *******/ while (rs.next()) { firstn = rs.getString(1); lastn = rs.getString(2); phone = rs.getString(3); pager = rs.getString(5); home = rs.getString(6); count = count+1; /**** trying to create a XML string here which can then be returned *****/ mainStr = mainStr + " <Employee_Info> <Firstname> "+ firstn +" </Firstname><Lastname> "+lastn + " </Lastname> "+" <Extension> "+ phone +" </Extension> "+" <Pager> "+pager+" </Pager> "+ " <Home> "+ home +" </Home></Employee_Info>" + "\n"; } ....... ...... /**** returning XML string *****/ return mainSTr; Now when I am trying to return a string in the form of XML it is not showing any XML tags at web browser side. I was wondering why my the string my client application recieves doesnot see XML tags and displays simple string showing firstname, lastname, phone,..etc Thanks a lot in advance. Nishant Awasthi 330-328-0243 (cell) [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>