I used maven's jaxws plugin to generate jar files from two wsdl links. The links are pretty much the same except for one line:
the <env> indicate the environment is a prod or uat. Other than that, the wsdl is the same.
The question is, can the jars generated from respective wsdl be used interchangably? I did notice there a few bytes different from the resultant two jars, and the test shows they CAN'T be used interchangably.
Can anyone explain why?
You may use them interchangeably if the code that uses the classes in the jar(s) does not depend on the default address of the web service but instead always passes the URL during initialization of such stub classes.