Need guidance in doing web services project!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KiranJyothi
    New Member
    • Apr 2007
    • 45

    Need guidance in doing web services project!!!

    Hi All,

    We are a group of two and doing StockQuote web services project. We are able to implement the existing web service and get the output in the XML format. In sun tutorial, we found that to get the output in a cleaner fashion we need to use a parser. All we are struck with, at this point of time is, which parser do we need to use? Is it DOM or SAX? Can anyone please help us with this?

    According to MVC architecture, what is the model in web services? We think that it is the XML file i.e., web.xml and WSDL file. Can anyone let us know about this too?

    Thanks in advance.

    -CSUEB 6580
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    As far as I know parsers are used for parsing input, i.e. they have nothing to with output. Generating output from xml isn't that difficult thanks to the highly structured data of xml. Simply keep track of the indentation level of a node and output all your nodes like you do now. Basically you're only printing a tree.

    kind regards,

    Jos

    Comment

    • KiranJyothi
      New Member
      • Apr 2007
      • 45

      #3
      Originally posted by JosAH
      As far as I know parsers are used for parsing input, i.e. they have nothing to with output. Generating output from xml isn't that difficult thanks to the highly structured data of xml. Simply keep track of the indentation level of a node and output all your nodes like you do now. Basically you're only printing a tree.

      kind regards,

      Jos
      Thanks for reply. I used DOM parser and it did parse the xml formatted output to regular text based output.

      -Jyothi

      Comment

      Working...