<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Graversen &#187; http</title>
	<atom:link href="http://graversen.org/category/http/feed/" rel="self" type="application/rss+xml" />
	<link>http://graversen.org</link>
	<description>Daniels comments</description>
	<lastBuildDate>Tue, 13 Jul 2010 20:43:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use proxy to inspect http/soap requests</title>
		<link>http://graversen.org/2008/04/14/use-proxy-to-inspect-httpsoap-requests/</link>
		<comments>http://graversen.org/2008/04/14/use-proxy-to-inspect-httpsoap-requests/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 13:20:56 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[http]]></category>
		<category><![CDATA[pi]]></category>
		<category><![CDATA[pi71]]></category>

		<guid isPermaLink="false">http://graversen.org/2008/04/14/use-proxy-to-inspect-httpsoap-requests/</guid>
		<description><![CDATA[I have developed some PI webservice scenarios, that I needed to test. When I test webservice I use .NET WebService Studio, which I&#8217;m unable to find anymore.  It is a small free application that can use a WSDL to create and interface to test the application.
When I tested this interface, I got the following [...]]]></description>
			<content:encoded><![CDATA[<p>I have developed some PI webservice scenarios, that I needed to test. When I test webservice I use .NET WebService Studio, which I&#8217;m unable to find anymore.  It is a small free application that can use a WSDL to create and interface to test the application.</p>
<p>When I tested this interface, I got the following error: <strong>System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly. </strong>It took a while to trace what the error was, because the processing looked fine at the PI system.</p>
<p>To trace the problem I deceived to place a proxy in between the .NET application and the PI SOAP adapter. I had earlier used <a href="http://www.owasp.org/index.php/OWASP_WebScarab_NG_Project">Webscrab</a> as a proxy to see how the used HTTP request looked and change some parameters. The new version of Webscrab is a Java Webstart application so it is much easier to get started with.</p>
<p>When the application is started, the user is requested to select a database to store the requests in. I normally use blank password, since the requests is just private.</p>
<p>The application looks like the following.</p>
<p><img src="http://graversen.org/wp-content/041408-1320-useproxytoi11.png" /></p>
<p>It is possible to change the port, for where the proxy listens in the menu Plugin-&gt;Proxy-&gt;Proxy Listeners. Default is 8008.</p>
<p><img src="http://graversen.org/wp-content/041408-1320-useproxytoi21.png" /></p>
<p>In the .NET application the proxy have to be changed to http://localhost:8008 and it should then be possible to see the incoming requests in the log.</p>
<p>When I placed this proxy between the two applications, I got the response that I expected and the .NET application also received the correct data.</p>
<p>If you need to change some requests, it is also possible. From the Plugin -&gt; Intercept Requests and POST. <img src="http://graversen.org/wp-content/041408-1320-useproxytoi31.png" /></p>
<p>Then for each new request you should get a popup, where it is possible to change the HTTP request before it is sent to the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://graversen.org/2008/04/14/use-proxy-to-inspect-httpsoap-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
