Using HTTP Authentication

SOAP/AM Client Development > Accessing a Web Service > Security >

Using HTTP Authentication

Previous pageReturn to chapter overviewNext page

The SOAP/AM Client Process automatically negotiates HTTP Basic or Digest authentication when sending requests to the Web service host. You specify your authentication credentials using the -httpauth command line option when starting the Client Process. The credentials may be specified as userid:password in clear text or in an encrypted credentials file.

 

To specify the credentials as a clear text string use the following format for the -httpauth option:

 

> run soapamcp / name $wscp / -httpauth #userid:password

 

In order to provide the credentials in a SOAP/AM credentials file, first create the credentials file using the MAKECF utility:

 

> run makecf mylogin userid:password

 

Then provide the credentials file name in the -httpauth option:

 

> run soapamcp / name $wscp / -cdf mycdf -httpauth mylogin

 

Refer to Using Credentials Files for information about creating credentials files. Refer to Configuring the Client Process for more information about SOAPAMCP command line parameters.