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 / General / April 2008

Tip: Looking for answers? Try searching our database.

Webservice - Intercept all requests

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias S. - 23 Apr 2008 16:43 GMT
Hi there,

I've got a webservice which a couple of methods, some of which all take
identical parameters like "Key" and "LanguageID". Is there a way to
globally check those parameters instead of writing this code into each
and every WebMethod?

Thanks in advance!

Matthias
--
Patrice - 23 Apr 2008 17:42 GMT
You can perfectly have a (local) function call inside your web method to
avoid duplicating the code.

Else elaborate a bit about the exact problem as I'm not sure to understand
what is the problem you seems to have...

"Matthias S." <matthias.st_SP_AM_TR_AP_@googlemail.com> a écrit dans le
message de groupe de discussion : xn0fpa555mwofc000@news.microsoft.com...
> Hi there,
>
[quoted text clipped - 6 lines]
>
> Matthias
Matthias S. - 23 Apr 2008 18:41 GMT
Hi Patrice,

thanks for your reply. A method call will work fine in my case. I was
just wondering whether there is the possibility to intercept soap
requests and do something with the parameters. Just being nosy. :)

Kind regards. Matthias

> You can perfectly have a (local) function call inside your web method
> to avoid duplicating the code.
[quoted text clipped - 16 lines]
> > Matthias
> > --

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.