Working on a project which requires web services in an SSL environment.
But the soap:address location attribute it creates is for http, not https. How do I configure jax-ws so that the wsdl it generates has the correct https urls? I do not explicitly set any urls in my web service annotations and was hoping I wouldn't need to, I let JAX-WS handle it automatically.
Hello, thanks for the reply.
Unfortunately I couldn't find any solution to my problem in that thread.
I do have in my web.xml the security-constraint set to all URLs (/*) and the transport-guarantee set to CONFIDENTIAL.
When JAX-WS produces the WSDLs for my web services, it puts the soap address location as http instead of https.
When I manually modify the WSDL with the SSL URL everything works fine. Otherwise when soapUI takes the WSDL generated by JAX-WS it fails.
Is this perhaps a WebLogic server configuration thing?
So my web-xml looks like:
I use a sun-jaxws.xml file to configure my web service end points, like this for example:
In the web service class itself I just use @WebService and @WebResult tags - no attributes at all
and then the WSDL that gets generated has:
- <service name="TestWebServiceImpl">
- <port name="TestWebServiceImplPort" binding="tns:TestWebServiceImplPortBinding">
<soap:address location="http://something.com:80/test" />
It even puts that :80 in there for some reason....
Edited by: trant on May 31, 2012 8:35 AM
Very interesting issue, I found that this annotation may do the magic...
Hope that helps.
Vlad Remember to give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.