// In the service implementation...
String transportName = org.apache.axis.MessageContext.getCurrentContext().getTransportName();
I haven't tried it but I assume the transport name could be used to determine if the connection was over https port or not.
Hope this helps.
PARLEY,THUNDER (HP-MountainView,ex1) wrote:
Hi List,
If I have Axis running on Tomcat, which has 2 liistening ports (unsecure and SSL), when I deploy a new service, can I deploy it so that the service will only acknowledge requests over a SSL connection or is there some snippet of code I can put in the service itself to check that the requestor is accessing the service securely? Disabling the unsecure port on Tomcat is not an option.
Thanks!
Thunder
-- Andre Charbonneau
100 Sussex Drive, Rm 2025 Research Computing Support, IMSB National Research Council Canada Ottawa, ON, Canada K1A 0R6 613-993-3129 Fax: 613-993-3127
