I created a client code using wsimport(JAX-ws).I want to test those clent by using junit .i wrote the junit and passed the inputs.but i got error like "javax.xml.ws.soap.SOAPFaultExcption:no security header in message but required by policy"
It looked like the web service you consume is secured.
You need to pass security information to the server.
Ask the web service provider to explain what type of security they expect from you (the client/consumer which is your code) and go from there.
Joined: Jun 18, 2012
subject: Junit test for web service client generted using wsimport(Jax-ws)