473,322 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

Jun 27 '08 #1
2 1542
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." <ma**********************@googlemail.coma écrit dans le
message de groupe de discussion : xn***************@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
--
Jun 27 '08 #2
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." <ma**********************@googlemail.coma icrit dans
le message de groupe de discussion :
xn***************@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
--
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jiong Feng | last post by:
Hi, I have a ASP.net application, which is in root folder. I hope my http module to intercept requests like: http://localhost/abc/def http://localhost/abc/def/ http://localhost/abc/ where...
5
by: jb | last post by:
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript, InfoPath). I have written my webservice (C# .NET). I...
2
by: Peter McEvoy | last post by:
Folks, I've been building a Webservice API for a contract that will be exposed to the internet at large. There are two endpoints, and each endpoint contains a number of webmethods. Every...
9
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
1
by: Ondrej Dobias | last post by:
Hello, I would like to intercept WebBrowser's HTTP requests in order to be able to supply custom login to the proxy server, as well as choose the right certificate for several specific sites. I'm...
2
by: Jaans | last post by:
(Using the .NET Framework 2 RTM) I'm inheriting from SoapHttpClientProtocol to create a "proxy" class that interfaces with a 3rd party system using an HTTP SOAP interface. How can I trace /...
4
by: jens Jensen | last post by:
Hello, How can i have my web service to interact through HttpPost and HttpGet? I dont need soap (mostly just xml over http). I read this can be achieved through web.config but , where to put...
5
by: Benny | last post by:
I have a ASP.NET webservice and it is configured to run in a web garden with multiple processes. Whan a process in the garden is launched, I want the process to create a background thread. When...
5
by: linda.chen | last post by:
Hi all, We have a webservice (service1), which calls another webservice(service2) from another orginization. Our end users make requests throught service1. When service2 receives a quest, it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.