|
-
Aug 24th, 2005, 05:03 PM
#1
Thread Starter
PowerPoster
httpweb request
Hi
sorry for posting numerous Q's but i am wanting to learn! 
ok, I want to track what is happening etc... when requests are being sent (POST)
I have a webservice which has methods of recieving data and sending data. works well!
On the client app, it of course instantiates the webservice, calls methods it requires and acts upon them etc...
now, how would I be able to see what the POST information is? does it make sense?
I want to log the POSTS. how do i do this?
so if i call a method on the webservice from the client like :
theWSObj.Hello()
I want to log that POST
is it possible? how do I do it?
what about passing parameters to a webmethod on the Web Service using the httpwebrequest and getting a response back using httpwebresponse. possible?
Last edited by Techno; Aug 24th, 2005 at 07:07 PM.
-
Aug 25th, 2005, 12:35 PM
#2
Re: httpweb request
Web services are requested via IIS, so if you've enabled IIS logging, you can see exactly what's happening (not restricted to web services however) in C:\WINDOWS\system32\Logfiles\W3SVC1.
To check if logging is enabled on IIS - in inetmgr, right click > Properties on the web-site your web service is hosted under. The logging options are at the bottom of the "Web Site" tab.
And that should cover all options...
-
Aug 25th, 2005, 04:55 PM
#3
Thread Starter
PowerPoster
Re: httpweb request
lol i know how to do that but I cannot do this as I do not have direct access to the logs
and the logs do not show anything unusual according to the web hosting company...
-
Aug 26th, 2005, 12:39 PM
#4
Re: httpweb request
Sorry... :P
Perhaps log each individual request using Application_BeginRequest within Global.asax?
-
Aug 26th, 2005, 07:02 PM
#5
Thread Starter
PowerPoster
Re: httpweb request
i could (will try it) - but what exactly do i code?
I just dont get it.. it works fine with the Windows app, but not the mobile version of the app
both work fine when running on my local computer to access the webservice
I've noticed that if i call the same method on the webservice 2 times, from then it bums out on the mobile device
If i call any method, on the 2nd attempt to call a method (any.. not the same one).. it bums out
apperently the error means that there was a reply from the server but there was a problem at the protocol layer
but what problem?!?!
-
Aug 28th, 2005, 12:47 PM
#6
Re: httpweb request
You should be able to get the info you need from System.Web.HttpContext.Current.Request.
As for the specific error problem - haven't seen that message before, and haven't worked with mobile applications...
-
Aug 28th, 2005, 12:54 PM
#7
Thread Starter
PowerPoster
Re: httpweb request
issue was resolved yesterday
it was due to the fact that the company does shared hosting... and for some reason (no idea how the heck it works fine with the server) IIS doesnt know what to do with the 2nd request etc... (something to do with post headers or whatever)
so basically we gave it a dedicated IP and removed the post headers - and it worked!
http://www.experts-exchange.com/Prog..._20838133.html
that was the topic that helped - at least someone had the problem!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|