Copyright © Nortel Networks Limited 2006 | 28 |
A special note on .NET authentication headers
The authentication headers for AXIS toolkit generated stubs are set on the client stub as described in the preceeding example. In that scenario, the client stub is cast down to a org.apache.axis.client.Stub object. In the case of a .NET client this must be done differently. The MCS OPI currently supports basic HTTP authentication and the authentication headers must be set to Base64 encoded authentication on the client side.
The sample code below shows how to set the authenication headers for a .NET client. The code must be added in the stub class so that it may hijack the request and add the headers to it.