NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
BloodyDark
Joined: 21 Oct 2011 Posts: 2
|
Posted: Fri Oct 21, 2011 11:06 am Post subject: Create WebService server using Metro with UsernameToken security |
|
|
Hi everybody,
I'm here because I have some trouble deploying a WebService (server) and I need your help, I can't find anything on google.
I'm using NetBeans 7.0.1, GlassFish 3.1.1 (with JaxWs 2.2 and Metro 2.1.1-b09) and developping WebService in "java-first" style.
I have succesfully deployed my WebService without security but when I try to add some security using NetBeans GUI, that doesn't work for me
Here my (very simple) WebService : http://pastebin.com/cQw6kip1 (just a simple "hello world").
And I try to add UsernameToken Security by modifying (via Netbeans) the properties of my WebService :
"Secure Service" -> "Message Authentication over SSL" ("Username", "1.1", "Basic 128bit", "Lax")
Then I deployed my WebService on GlassFish witch recognised JSR109 annotations and create the WebService, here the WSDL generated : http://pastebin.com/bnxkr9KK
But when I try to consume the WebService, there is no security and I can't see any headers security in SOAP messages.
(I also try to follow this web tutorial : http://dlc.sun.com.edgesuite.net/javaee5/screencasts/metro-nb6/, but also with the "Realiable Message Delivrery", the request/response SOAP message are just basic message without any security or reliability...)
There is a WSIT generated also, but my guess is that "policies" aren't added to the WSDL when it's generated.
Do you have any idea ? Maybe I'm doing something wrong ?
Thanks all, in advance.
PS: I also try to use sun-jaxws.xml and WS context Servlet, but it was the same result...
BloodyDark |
|
| Back to top |
|
 |
BloodyDark
Joined: 21 Oct 2011 Posts: 2
|
Posted: Fri Oct 21, 2011 3:13 pm Post subject: |
|
|
Hi everyone, I finally found out why the WSDL wasn't correctly generated.
It's because I created a "maven" project.
I try with a normal project, and the WSDL was generated correctly with all policies rules in it.
Maybe we have to configure something in Maven. If you have informations about it, thanks to answer me.
Thanks,
BloodyDark |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|