Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2005

Tip: Looking for answers? Try searching our database.

Web service proxy calling a client-side method

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 09 Sep 2005 15:46 GMT
Hi

Scenario: I am calling a web method from a WinForms method.  The proxy
of the web service then checks one of it's settings.

Depending on the setting I want the proxy to call a method in the
instance of the WinForms class that called the web method.  Once
the client-side method is complete the web method needs to continue its
processing.  Unfortunately, I can't send a reference of the class to
the proxy as the proxy may be called by other applications.

Has anyone done anything like this?  Or does anyone have any ideas on
how to do it?

Any ideas would be greatly appreciated.

Regards

Mike
hashimisayed@gmail.com - 10 Sep 2005 15:59 GMT
Hi,

You definately don't want to put any code in the proxy class because
that class is autogenerated, as you know; you will likely endup
overriding something at some point. What you want in this case, is a
pre-processor. Just create another class and call that instead of the
proxy. Let this class decide whether to call the proxy or not. That
way, you localize the logic that determines what to call.

Thanks,

Sayed Y. Hashimi

http://www.sayedhashimi.com
Shameless Book Plug: Service-Oriented Smart Clients with .NET 2.0
http://www.amazon.com/exec/obidos/tg/detail/-/1590595513/qid=1126361421/sr=1-1/r
ef=sr_1_1/102-5068238-6758524?v=glance&s=books


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.