Webservice - Intercept all requests

Webservice - Intercept all requests

am 23.04.2008 17:43:52 von matthias.st_SP_AM_TR_AP_

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
--

Re: Webservice - Intercept all requests

am 23.04.2008 18:42:45 von Patrice

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." a écrit dans le
message de groupe de discussion : xn0fpa555mwofc000@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
> --
>

Re: Webservice - Intercept all requests

am 23.04.2008 19:41:17 von matthias.st_SP_AM_TR_AP_

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." a icrit dans
> le message de groupe de discussion :
> xn0fpa555mwofc000@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
> > --