Procedure
You can configure and assemble HTTP authentication for
the application using an assembly tool, or programmatically. Modify
the HTTP properties programmatically if you want the values that are
set programmatically to take precedence over the values that are defined
in the binding. If you configure HTTP basic authentication programmatically,
the properties are configured in the Stub or Call instance. However,
you only can programmatically configure HTTP proxy authentication.