By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

Automatically capture all values posted to a web service

P: n/a
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[i]
}

Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Hardy Wang" <ha********@marketrend.com> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
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[i]
}

Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.