Hi all,
Is it possible to register a non-SSL ("normal") and SSL-configured port on the same URL with different protocols? For example:
http://localhost:8080/ws/Pingservice
https://localhost:8080/ws/Pingservice
(Note the s in the https in the second URL).
I've set up a test project to try to figure this out; here's my WSDL:
https://github.com/mrietveld/scratch/blob/master/scratch-ws/scratch-ws-wsdl/src/main/resources/wsdl/PingService.wsdl#L133
You'll notice that the service element contains 2 ports: 1 port uses the #UnsecureTransportPolicy and 1 uses the #SslTransportPolicy.
In the code itself, (it's a WSDL/contract-first approach), I've just ended up defining 2 implementations that extend the abstract
class with the real code:
https://github.com/mrietveld/scratch/tree/master/scratch-ws/scratch-ws-wsdl/src/main/java/org/scratch/ws
What's weird (or rather, logical but frustrating) is that I of course can not register two different ports on the same URL: I have
to give them different URLS:--
https://github.com/mrietveld/scratch/blob/master/scratch-ws/scratch-ws-wars/src/main/eap-6_3/WEB-INF/web.xml
Ideally, I'd like to be able to specify the URL protocol without specifying the hostname, because of the issues that users of the
war might have with regards to proxies/other hostname issues.
So, in summary:
1. is it possible to register two (service) ports on the same URL with different protocols?
2. If so, how do I do it?
Lastly, my setup is:
cxf + jbossws-cxf + java 6 EE
(no spring or blueprint)
Thanks,
Marco
Is it possible to register a non-SSL ("normal") and SSL-configured port on the same URL with different protocols? For example:
http://localhost:8080/ws/Pingservice
https://localhost:8080/ws/Pingservice
(Note the s in the https in the second URL).
I've set up a test project to try to figure this out; here's my WSDL:
https://github.com/mrietveld/scratch/blob/master/scratch-ws/scratch-ws-wsdl/src/main/resources/wsdl/PingService.wsdl#L133
You'll notice that the service element contains 2 ports: 1 port uses the #UnsecureTransportPolicy and 1 uses the #SslTransportPolicy.
In the code itself, (it's a WSDL/contract-first approach), I've just ended up defining 2 implementations that extend the abstract
class with the real code:
https://github.com/mrietveld/scratch/tree/master/scratch-ws/scratch-ws-wsdl/src/main/java/org/scratch/ws
What's weird (or rather, logical but frustrating) is that I of course can not register two different ports on the same URL: I have
to give them different URLS:--
https://github.com/mrietveld/scratch/blob/master/scratch-ws/scratch-ws-wars/src/main/eap-6_3/WEB-INF/web.xml
Ideally, I'd like to be able to specify the URL protocol without specifying the hostname, because of the issues that users of the
war might have with regards to proxies/other hostname issues.
So, in summary:
1. is it possible to register two (service) ports on the same URL with different protocols?
2. If so, how do I do it?
Lastly, my setup is:
cxf + jbossws-cxf + java 6 EE
(no spring or blueprint)
Thanks,
Marco