Junit test for web service client generted using wsimport(Jax-ws)
Joined: Jun 18, 2012
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"
Can anyone help regarding this
Joined: Jul 26, 2011
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.