Punter Vicky
Punter Vicky

Reputation: 17012

SOAP Request / Response Comparison Tool

Typically an enterprise application consumes a number of webservices. It is likely that some of these webservices that are being consumed will be upgraded to a new version every month. Before consuming the new webservice , the consumer must do a thorough analysis of changes between old service and new service which will form the basis of impact assessment.

I have come across tools that compare the WSDL , however some of the services that the application consumes could be huge and the WSDL might have more than say 50 operations. The consuming application might be using say 10 operations. By using WSDL comparator , it could be a bit tedious to identify if a modified element is part of a any of the operations consumed. In order to do such an analysis, I usually generate the request and response using SOAP UI for each operation and use text comparison tools to identify the difference.

Is there a tool available for performing of operation-wise comparison when 2 WSDLs are provided as input?

Upvotes: 2

Views: 3711

Answers (3)

Santosh
Santosh

Reputation: 17923

WSDL is eventually an XML document. The XmlUnit can come very handy in this case. Its essentially a utility for unit testing the XML application which make heavy use of XML. In the most trivialized for, it has a Diff class which actually compares the XML as follows:

Diff myDiff = new Diff("</Original>", "</Modified>"); 

But as I said, this is very trivialized. Please explore this for more details.

Also there is XML diff utility from Oracle.

Not sure if you the operation-wise comparison is possible or not.

Upvotes: 1

oMiD
oMiD

Reputation: 322

Maybe you want to generate classes from wsdl files using Eclipse WSDL2Java plugin or Apache CXF instead of generating each operation request and response, in my idea it can facilitate your work. Then compare the new classes with old ones using Devart Code Compare. Am i right?

Upvotes: 1

andygavin
andygavin

Reputation: 2884

Service Registry

It sounds like you are describing service governance. Some of the functionality you are describing can be provided by a registry above the functions of finding and publishing services.

Upvotes: 1

Related Questions