Sidney Zurch [
http://community.jboss.org/people/zurchman] replied to the discussion
"accessing secure wsdl"
To view the discussion, visit:
http://community.jboss.org/message/550689#550689
--------------------------------------------------------------
Client code. If SSL
webservice = your_webservice_stub;
BindingProvider bp = (BindingProvider) your_webservice;
Map<String, Object> context = bp.getRequestContext();
// if you need to change the endpoint
// context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint);
// System.out.println("new endpoint: " + endpoint);
// if the endpoint is https
// System.setProperty("javax.net.ssl.trustStore", [path to your
truststore]
// System.out.println("add basic auth credentials");
context.put(BindingProvider.USERNAME_PROPERTY, "[your_username]");
context.put(BindingProvider.PASSWORD_PROPERTY, "[your_password]");
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/550689#550689]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]