Solved

webservices(Petty doubt)

Posted on 2006-06-12
2
211 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:
mayankeagle 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now