Automatically capture all values posted to a web service

H

Hardy Wang

Hi,
I am wandering is it possible to capture all values posted (Http Post)
from a web site to a web service?
I would like to do something like following in web form:
HttpContext ctx = HttpContext.Current;
NameValueCollection forms = ctx.Request.Form;
for (int i = 0; i < forms.Count; i++) {
// get key name: forms.GetKey(i)
// get value: forms
}

Thanks!
 
C

casey chesnut

i'm assuming you are talking HttpPost Web Services, and not SOAP?
the web service would not need to iterate the Forms collection,
it would get the values posted as parameters.
Thanks,
casey
http://www.brains-N-brawn.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top