aspose file tools*
The moose likes Web Services and the fly likes Junit test for web service client generted using wsimport(Jax-ws) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Junit test for web service client generted using wsimport(Jax-ws)" Watch "Junit test for web service client generted using wsimport(Jax-ws)" New topic
Author

Junit test for web service client generted using wsimport(Jax-ws)

john Dalton
Greenhorn

Joined: Jun 18, 2012
Posts: 12
Hi
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
Thankyou
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 471
    
    4
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.
john Dalton
Greenhorn

Joined: Jun 18, 2012
Posts: 12
Thanks Paul
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit test for web service client generted using wsimport(Jax-ws)