wood burning stoves 2.0*
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: 394
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Junit test for web service client generted using wsimport(Jax-ws)
 
Similar Threads
why not use a Java 6 WS client?
Junit Testing for Web Service client(generated using wsimport jax-ws)
New to web services - good tool to build web service client to use in jsp
JAX-WS RI wsimport not working
I need to write a client for Testing the SEI implemented as stateless session bean