Solved

webservices(Petty doubt)

Posted on 2006-06-12
2
225 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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:
This video teaches viewers about errors in exception handling.

867 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

23 Experts available now in Live!

Get 1:1 Help Now