Webservice - Intercept all requests

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
--
matthias.st_SP_AM_TR_ [ Mi, 23 April 2008 17:43 ] [ ID #1948360 ]

Re: Webservice - Intercept all requests

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_ [at] googlemail.com> a écrit dans le
message de groupe de discussion : xn0fpa555mwofc000 [at] news.microsoft.com...
> 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 [ Mi, 23 April 2008 18:42 ] [ ID #1948371 ]

Re: Webservice - Intercept all requests

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


--



Patrice wrote:

> 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_ [at] googlemail.com> a icrit dans
> le message de groupe de discussion :
> xn0fpa555mwofc000 [at] news.microsoft.com...
> > 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
> > --
matthias.st_SP_AM_TR_ [ Mi, 23 April 2008 19:41 ] [ ID #1948377 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Webservice - Intercept all requests

Vorheriges Thema: ASP.Net Code Not Firing
Nächstes Thema: ASP .NET 2.0 and Javascript / JS - Select Options disappear