Automatically capture all values posted to a web service

  • Thread starter Thread starter Hardy Wang
  • Start date Start date
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!
 
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

Back
Top