JBoss Community

Re: wsconsume, how to access HTTP Basic secured WSDL

created by harald.kirschner in JBoss Web Services - View the full discussion

Hi Jochen,

 

I solved the problem:

          UtilitiesDeviceERPSmartMeterCreateConfirmation_In_Service_Impl stub = new UtilitiesDeviceERPSmartMeterCreateConfirmation_In_Service_Impl();

            UtilitiesDeviceERPSmartMeterCreateConfirmation_In_PortType request = stub.getUtilitiesDeviceERPSmartMeterCreateConfirmation_BNDG();

 

          BindingProvider bp = (BindingProvider) request;

            bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, USER);

            bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, PASSWORD);

 

Maybe it helps for you, too.

 

Regards,

   Harald

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community