JBoss Community

How do I rewrite soap:address to always HTTPS

reply from Alessio Soldano in JBoss Web Services - View the full discussion

Ulrich Romahn wrote:

 


So, we have multiple options to configure the generation of the service URL:

  1. we configure it statically by setting "webServiceHost" to our public server name, or
  2. we configure it using dynamic rewrite based on the request URL

 

If we use option #1, JBoss will always generate a service URL with "http" no matter what else we do

 

Generally speaking, something you can do is provide the wsdl you want to be exposed in your deployment. First you deploy without it, then you save the generated wsdl, modify it as you wish, add it and reference it (@WebService(wsdlLocation = "WEB-INF/...")) in your deployment and finally re-deploy.

 

Something else you might want to try is setting your soap:address to something like "https://REPLACE-ME", that should force the https protocol to be use in the soap:address when rewriting it. I think this probably has the side effect of overwriting the webServicePort you might want to specify though.

 

If nothing of this helps, please create a feature request jira. We might think about adding another configuration option (webServiceProtocol) and achieve what you want throught that.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community