Recently I had generated the webservice client(given WSDL) stubs using JAX-WS2.0 in JDK5, the stubs generated successfully and it was fully functional, but recently our application moved from JDK5 to JDK6, for which I had to again generate those webservice client stubs, but this time using integrated JAX-WS 2.1 RI with JDK6, for which the stubs got generated successfully, but whenever the application is making a SOAP call to the server, somehow it is not able to recognize the soap envelop and hence throwing an exception thus making my app non-functional .
Can anyone of you guys can help me regarding the same, I am sure there must be some configuration settings required for this migration which I am missing.
Prior to asking your question, you should determine the difference between the JDK5 and JDK6 versions of the generated artifacts.
First I would look at what are the differences between the requests.
To capture the requests, you can use, for instance a TCP monitoring tool or a packet sniffer.
Another alternative is to use soapUI to set up a mock web service and examine the incoming request.