How to compare two SOAP Envelope or two Document or two XML files

G

GenxLogic

Hi All,
I am testing a web service.
I need to compare the SOAP Response i got from the web service with the
xml present with me as expected output. i means to say i am receiving
SOAPEnvelope using call.invoke() function and i want to compare this
envelope with another XML file.
Could anyone help me out please?

Thanks in Advance,
Deepak Kumar
Infosys Technologies Ltd.
 
T

Tomek

GenxLogic napisal(a):
Hi All,
I am testing a web service.
I need to compare the SOAP Response i got from the web service with the
xml present with me as expected output. i means to say i am receiving
SOAPEnvelope using call.invoke() function and i want to compare this
envelope with another XML file.
Could anyone help me out please?

Comparing SOAP response with xml data from file can be tricky,
different parser can generate different output. But you can check if
some specific elements exists inside response using XPath.
 
L

Lew

Tomek said:
GenxLogic napisal(a):

Comparing SOAP response with xml data from file can be tricky,
different parser can generate different output. But you can check if
some specific elements exists inside response using XPath.

Google "canonical XML form".

- Lew
 
A

andrewmcdonagh

Hi All,
I am testing a web service.
I need to compare the SOAP Response i got from the web service with the
xml present with me as expected output. i means to say i am receiving
SOAPEnvelope using call.invoke() function and i want to compare this
envelope with another XML file.
Could anyone help me out please?

Thanks in Advance,
Deepak Kumar
Infosys Technologies Ltd.

if you are testing a web service - I HIGHLY recommend soapUI.

Its a great tool for inspecting, ad-hoc experimenting with a web
service's methods and best of all, allows automated test cases to be
created and run very easily. It will also do load testing for you.

The only down side, is its a Java Webstart app, that requires you to
accept its security certificate. However, we use it in our Corporate
environment without any issues.


Andrew

See
http://www.soapui.org/

screen shots:
http://www.soapui.org/images/screenshot1.gif
http://www.soapui.org/images/screenshot2.gif
http://www.soapui.org/images/screenshot3.gif
http://www.soapui.org/images/screenshot4.gif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top