Print Page | Close Window

Web Service Authentication

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=289
Printed Date: 29-Mar-2025 at 7:08am


Topic: Web Service Authentication
Posted By: Customer
Subject: Web Service Authentication
Date Posted: 16-Jul-2007 at 2:19pm
I use a web service data source type which requires a basic authentication, how can I give information to Persistence Manager to use specific credentials to access web methods (user name, password and optionally domain name) ?

I tried to insert markers in ibconfig file but without success

(however no authentication is required to wsdl access)




Replies:
Posted By: IdeaBlade
Date Posted: 16-Jul-2007 at 2:19pm

Currently, authentication information can be passed on the WsQuery used to retrieve the entities, and can also be set directly on the SoapHttpClientProtocol object at a customizable interception point.

On the WsQuery - the Settings property will point to a BasicWsQuerySettings object which contains Credentials and SoapHeader properties.  The documentation on the SoapHeader property gives an example of how to use these objects.

You also have the option of implementing a custom IWsProxyInterceptor for more control over this.  It contains BeforeProxyCreate and AfterProxyCreate methods which you can use to control proxy creation.  Check out the documentation on this interface for more information.




Print Page | Close Window