468,136 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

How to get the parameters passed to a SOAP webservice

I'd like to log the parameters that were passed to any of the functions

in my webservice. Is there an easier way to get the parameters from the

Request[]? I wrote this function and for simple functions it works:

XmlDocument GetRequestXml() {
XmlDocument doc = new XmlDocument();
foreach(string key in this.Context.Request.Form.AllKeys) {
XmlElement x = doc.CreateElement(key);
x.InnerXml =
foreach(string key in this.Context.Request.QueryString.AllKeys)
XmlElement x = doc.CreateElement(key);
x.InnerXml =
return doc;

However if I have a function like this:

public string Test1(string[] test) {

In this case GetRequestXml returns nothing (<request />). I have
methods with lots of parameters and all I want it to log the passed
parameters so I can figure out what happens if something crashed and
debug the service easier.

Jun 6 '06 #1
0 893

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by A.M-SG | last post: by
3 posts views Thread by =?Utf-8?B?UGllcnJl?= | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.