Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] - نسخه متنی

Jeffrey Putz

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Modifying the Proxy Class


You might have noticed that the address of a Web service is hard-coded right into the proxy class. Although this might be handy, it's safe to assume that when you deploy your Web service, it won't be located on a server called "localhost,' as shown in Listing 10.6. The constructor in the generated class first looks for a setting in the web.config file's appSettings section called MyProject.Esteem.EsteemBooster. This is a convenient means of setting the location of the Web service without having to modify the code.

This is not present in the older Visual Studio versions prior to 2005. Although you can alter the proxy class, it may be regenerated if you update the Web reference. The easiest way to get around this is to copy and paste the entire proxy class into your own class file and then replace the address with a reference to the web.config file's appSettings section.


/ 146