Groups | Blog | Home
all groups > dotnet web services enhancements > june 2006 >

dotnet web services enhancements : Read WSE configuration from class library project


YC
6/6/2006 8:25:03 AM
Hi,
I have a problem - I have a .net web site which implements the MVC pattern.
Thus, I have a class library controller which is in charge of all the web
services/wse communications.
The problem is the controller runs under the context of the web site and the
configuration in the app.config is not being read at all.
I want the web site itself to be as "stupid" as possible and even know what
WSE is and if it’s implemented at all.
I need the entire WSE configuration to lay in the controller class library
project.

Any suggestions?

Thanks

Yoav
YC
6/8/2006 7:03:01 AM
Hi Pablo.
Thanks for your reply(you are a big help as usual).
The problem is not exactly a WSE problem - I want my class library
controller to hold the confoguration for the WSE. When the class library runs
under my web application context, it tries to read the web.config instead of
the app.config - expected. How can I force the class library controller to
use it's own WSE confoguration so that the web application won't need to
reference the WSE at all?

Thanks

Yoav

[quoted text, click to view]
Pablo Cibraro
6/8/2006 9:45:15 AM
Hi Yoav,

You can use the static property
Microsoft.Web.Services3.Configuration.WebServicesConfiguration to know
whether WSE is configured or not.

Does it answer your question ?

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

[quoted text, click to view]

AddThis Social Bookmark Button