Configure HTTP basic authentication

 

To configure HTTP basic authentication, use the WebSphere Application Server tools to modify the binding information or programmatically set properties in a Stub or Call object. The values set programmatically take precedence over the values defined in the binding. However, you only can programmatically configure the HTTP proxy authentication.

  1. Use either the Assembly Toolkit or the administrative console to configure the HTTP basic authentication

    • Before installing the Web services application, use Assembly toolkit to configure the HTTP basic authentication in the Web Services Client Port Binding page for a Web service or a Web service client. The Web Services Client Port Binding page is available after double-clicking the webservicesclient.xml file.

    • After installing the Web services application, you can use administrative console to configure the Web services client security bindings for a Web service only. To access the collection, complete the following steps:

      1. Click Applications > Enterprise Applications.

      2. Under Related Items, click either Web Modules or EJB Modules.

      3. Click the name of the URI.

      4. Under Additional Properties, click Web Services: Client Security Bindings.

  2. Programmatically set the properties in the stub or call object for a Web service or a Web service clientProgrammatically set the following properties...

    javax.xml.rpc.Call.USERNAME_PROPERTY
    javax.xml.rpc.Call.PASSWORD_PROPERTY
    javax.xml.rpc.Stub.USERNAME_PROPERTY
    javax.xml.rpc.Stub.PASSWORD_PROPERTY
    
    

  3. Programmatically set the properties in the stub or call object to configure the HTTP proxy authentication.Programmatically set the following properties for HTTP...

    com.ibm.wsspi.webservices.HTTP_PROXYHOST_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYPORT_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYUSER_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYPASSWORD_PROPERTY
    
    

    Programmatically set the following properties for HTTPS...

    com.ibm.wsspi.webservices.HTTPS_PROXYHOST_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYPORT_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYUSER_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYPASSWORD_PROPERTY
    
    

 

See Also

HTTP basic authentication
Securing Web services using XML digital signature
Using Web services based on Web Services for J2EE
HTTP basic authentication collection
Web Services: Client security bindings collection