A special note on .net authentication headers – Nortel Networks NN42020-123 User Manual

Page 28

Advertising
background image

NN42020-123 MCS 5100 3.5 Standard 4.0 4.0 January 2006

28

Copyright © Nortel Networks Limited 2006

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.

Advertising