![]() |
| ||
| help with web services. parse xml string with dom parser Hi, this is my final project. I have generated an xml string, this is my code: import java.io.StringReader; whenever i run it in my browser, there will be error like this: An error occurred at line: 39 in the jsp file: /assignment2/domrecipe.jsp InputSource cannot be resolved to a type 36: // Create an instance of the DOM parser and parse the document 37: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); 38: DocumentBuilder db = dbf.newDocumentBuilder(); 39: Document doc = db.parse(new InputSource(new StringReader(xmlResult))); 40: 41: // Begin traversing the document 42: traverseTree(doc, out); and this: root cause java.net.MalformedURLException: no protocol: <?xml version="1.0" encoding="UTF-8"?> (and then the xml string) so, basically, the xml string has been read, but there are errors in it... can someone help me.. thanks.. |
| ||
| URGENT:::webservices Return xmlstring as response Hi, i am very new to webservices.My webservice has to return xmlstring as response. like.. <xml version.....><Returncode>G</ReturnCode><folder name = 'salesfolder' value ='100'></folder>I got simple samples which return a string,but not xmlstring how can i proceed.....plz.... I have to develop webservices using JAX-WS ,JBoss Application server,JBossWS-native...... Can anyone plz..help me out with steps..... Thanx in Advance.... |
| ||
| Urgent:XML String Hi, thanks for replying i have gone through that thread before posting,but i am not getting it. Is that thread is a service or client as i am seeing jsp tags and also its not returning.. I have gone through some links and this is what i got.Please correct me .... 1. i wrote a method which takes string as a parameter. 2. In the method, i am generating a xml Document and transforming that DOM to string and returning that string. Is i am folowing the correct way?. In some articles i came to know that it should returning a document type,so that will as string i correct format(tags).Is it correct... please suggest me..... Quote:
|
| All times are GMT -4. The time now is 1:30 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC