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

aodhan hoffman do-not-reply at jboss.com
Thu Jul 1 17:56:02 EDT 2010

aodhan hoffman [http://community.jboss.org/people/gryffin] replied to the discussion

"accessing secure wsdl"

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

Thank you. Unfortunately, I do this already as you can see here:

            assetApiService = new AssetAPIService( );
            assetService = assetApiService.getAssetAPIServiceHttpPort();
            ((BindingProvider)assetService).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "******");
            ((BindingProvider)assetService).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "******");

The problem arises because *assetApiService = new AssetAPIService( );* fails. It fails because the entire service url is protected. I need to provide the username/password at the time the WSDL is dynamically sought as the ws stub is instantiated.

So I somehow need to get the credentials into a the context somewhere around here:

        public AssetAPIService(URL wsdlLocation, QName serviceName) {
                super(wsdlLocation, serviceName);

where 'wsdlLocation' is password protected. Thanks!


Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

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

More information about the jboss-user mailing list