Asbjørn
Asbjørn

Reputation: 1232

How to detect breaking changes in WSDL contracts?

We would like to have a setup where when deploying our web services to our staging server, we would get notified if there are any breaking changes in the WSDL contracts by comparing them to the WSDL of our production site.

Are there any tools or services that can help doing this?

Tried Membrane WSDL comparer but this threw java.lang.StackOverflowError when trying it out :)

Upvotes: 8

Views: 1963

Answers (1)

Selim
Selim

Reputation: 1013

First; I'm not aware of any such tools.

I also answered the "other" question. Looking at the guidelines posted there, I would say it should be possible to roll your own (Possible, not easy :).

I did similar work in the past; albeit not for WSDL but for another dialect. My approach was;

  1. Parse the WSDL/Schema as regular XML (They are after all XML dialects themselves) (Schema can be tricky though)
  2. Build an in-memory model
  3. Define rules and apply them

WSDL part is easier since there are a limited number of constructs; Schema would be tricky but still doable I guess.

Upvotes: 3

Related Questions