Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Cassini to use proxy settings?
Burhaan
#1 Posted : Wednesday, October 14, 2009 3:36:03 AM(UTC)
Groups: Member
Joined: 10/14/2009(UTC)
Posts: 2
Location: South Africa

Hi,
I am trying to debug calls to a Web Service and have implemented a transparent proxy (soapUI) to capture the requests. Using the WebDev server that comes with Visual Studio, i notice that it inherits proxy settings from IE, hence all requests are directed through the proxy (including the stuff that would be server side). Is it possible to get Cassini to do this?
Your help... much appreciated.
Ultidev Team
#2 Posted : Wednesday, October 14, 2009 5:51:16 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

If we understand you correctly, your web service hosted by Cassini sends our requests that you would like to capture, and you can capture them in WebDev, but not in Cassini. If that's it the case, here some thoughts:
Proxy settings of IE are user-specific. When you run WebDev, it runs in the context of your user account, so proxy settings from IE->Tools are inherited by WebDev process. Cassini and IIS, unlike WebDev, normally run as windows services - processes that have their own non-interactive user account (Local System in Cassini case). Windows service processes cannot inherit user-specific proxy settings since they run under different account context. The work-around for this would be to run Cassini as a regular interactive exe for debugging purposes. In this situation Cassini, just like WebDev, will inherit WinInet proxy settings of the current user and your HTTP tracer will be able to capture traffic from the web service. Another way to work around it is to add proxy settings in the code:
Code:
request.Proxy = new WebProxy(proxyHost,proxyPort);


Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Burhaan
#3 Posted : Wednesday, October 14, 2009 11:30:35 PM(UTC)
Groups: Member
Joined: 10/14/2009(UTC)
Posts: 2
Location: South Africa

Thanks, that pointed me in the right direction and i seem to be able to see the requests now.
Much appreciated.
Ultidev Team
#4 Posted : Thursday, October 15, 2009 6:19:35 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Always happy to help!

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.