Solved

webservices(Petty doubt)

Posted on 2006-06-12
2
240 Views
Last Modified: 2010-03-31
If I write a jaxp to parse an xml file, how should I test it. My doubt is can I directly run the java code just as a basic java file by passing the xml file as input stream or should I make a .jar file and write a deployment descriptor and deploy that file or should i write a client code and lookup at the parsing file which takes the xml object and parses it. Just give me strp by step. I will be really pleases as I am new to it.
0
Comment
Question by:rmvprasad
2 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 125 total points
ID: 16891862
>> If I write a jaxp to parse an xml file,

That can be done simply by using JUnit - www.junit.org. It is also integrated with IDEs like Eclipse.

>> should I make a .jar file and write a deployment descriptor and deploy that file or should i write a client code and
>> lookup at the parsing file which takes the xml object and parses it.

Not necessary just for unit-testing the parsing piece. Once the parsing functionality is verified, you can verify if it works this way too, so this would be the second step.
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 16891879
have a look at the below link if that helps,

http://java.sun.com/xml/
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question