[jboss-user] [JBoss Web Services] - accessing secure wsdl

Sidney Zurch do-not-reply at jboss.com
Thu Jul 1 17:33:52 EDT 2010


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&containerType=14&container=2044]

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


More information about the jboss-user mailing list