[jboss-user] [JBoss Web Services] - How do I rewrite soap:address to always HTTPS

Alessio Soldano do-not-reply at jboss.com
Thu Jul 1 07:01:27 EDT 2010


Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] replied to the discussion

"How do I rewrite soap:address to always HTTPS"

To view the discussion, visit: http://community.jboss.org/message/550570#550570

--------------------------------------------------------------
> 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 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
[http://community.jboss.org/message/550570#550570]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100701/77c55593/attachment.html 


More information about the jboss-user mailing list