<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Testing Web Services With a Standard Web Vuser</title>
	<atom:link href="http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/</link>
	<description>Expert consulting services with HP Software</description>
	<lastBuildDate>Tue, 08 Jun 2010 15:08:25 +1000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Radan</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-13038</link>
		<dc:creator>Radan</dc:creator>
		<pubDate>Wed, 14 Apr 2010 12:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-13038</guid>
		<description>hi,
I am trying to post the xml to the web service, but i get the 500 Internal error as below.

response headers for &quot;http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus.asmx&quot; (RelFrameId=1, Internal ID=1)
HTTP/1.1 500 Internal Server Error\r\n

Can you please help me if I am missing anything in the script.

web_add_header(&quot;Content-Type&quot;,&quot;text/xml; charset=ISO-8859-1&quot;);

    web_add_header(&quot;SOAPAction&quot;,&quot;http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus\&quot;&quot;);
    	web_custom_request(&quot;getOutageCommunicatorServiceStatus&quot;,
		&quot;URL=http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus.asmx&quot;,
		&quot;Method=POST&quot;,
		&quot;TargetFrame=&quot;,
		&quot;Resource=0&quot;,
		&quot;Referer=&quot;,
		&quot;Body=\r\n&quot;
&quot;   \r\n&quot;
&quot;   \r\n&quot;
&quot;      \r\n&quot;
&quot;         &lt;!--Optional:--&gt;\r\n&quot;
&quot;         01\r\n&quot;
&quot;         &lt;!--Optional:--&gt;\r\n&quot;
&quot;         0101\r\n&quot;
&quot;      \r\n&quot;
&quot;   \r\n&quot;
&quot;&quot;,
LAST);

Thanks,
Radan</description>
		<content:encoded><![CDATA[<p>hi,<br />
I am trying to post the xml to the web service, but i get the 500 Internal error as below.</p>
<p>response headers for &#8220;http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus.asmx&#8221; (RelFrameId=1, Internal ID=1)<br />
HTTP/1.1 500 Internal Server Error\r\n</p>
<p>Can you please help me if I am missing anything in the script.</p>
<p>web_add_header(&#8221;Content-Type&#8221;,&#8221;text/xml; charset=ISO-8859-1&#8243;);</p>
<p>    web_add_header(&#8221;SOAPAction&#8221;,&#8221;http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus\&#8221;");<br />
    	web_custom_request(&#8221;getOutageCommunicatorServiceStatus&#8221;,<br />
		&#8220;URL=http://wbv-oal-t0001/Outage_Communicator/getOutageCommunicatorServiceStatus.asmx&#8221;,<br />
		&#8220;Method=POST&#8221;,<br />
		&#8220;TargetFrame=&#8221;,<br />
		&#8220;Resource=0&#8243;,<br />
		&#8220;Referer=&#8221;,<br />
		&#8220;Body=\r\n&#8221;<br />
&#8221;   \r\n&#8221;<br />
&#8221;   \r\n&#8221;<br />
&#8221;      \r\n&#8221;<br />
&#8221;         <!--Optional:-->\r\n&#8221;<br />
&#8221;         01\r\n&#8221;<br />
&#8221;         <!--Optional:-->\r\n&#8221;<br />
&#8221;         0101\r\n&#8221;<br />
&#8221;      \r\n&#8221;<br />
&#8221;   \r\n&#8221;<br />
&#8220;&#8221;,<br />
LAST);</p>
<p>Thanks,<br />
Radan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Moncrieff</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-7592</link>
		<dc:creator>Stuart Moncrieff</dc:creator>
		<pubDate>Tue, 29 Sep 2009 00:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-7592</guid>
		<description>If you are looking for a web service to practice writing a LoadRunner/VuGen script for, then you should look at the &lt;a href=&quot;http://www.programmableweb.com/apis/directory&quot; rel=&quot;nofollow&quot;&gt;API Directory from ProgrammableWeb&lt;/a&gt;.

If you are wanting to develop your own web service, then you will need a web server with a server-side scripting language like PHP or C#. Once you know what language/platform you are using, it should be easy to find a tutorial on creating web services.

Using someone else&#039;s web service is the easiest way to go if you just want to practice creating LoadRunner/VuGen scripts though...

Cheers,
Stuart.</description>
		<content:encoded><![CDATA[<p>If you are looking for a web service to practice writing a LoadRunner/VuGen script for, then you should look at the <a href="http://www.programmableweb.com/apis/directory" rel="nofollow">API Directory from ProgrammableWeb</a>.</p>
<p>If you are wanting to develop your own web service, then you will need a web server with a server-side scripting language like PHP or C#. Once you know what language/platform you are using, it should be easy to find a tutorial on creating web services.</p>
<p>Using someone else&#8217;s web service is the easiest way to go if you just want to practice creating LoadRunner/VuGen scripts though&#8230;</p>
<p>Cheers,<br />
Stuart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-7588</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-7588</guid>
		<description>I guess, in order to post web service request via http/html protcol(use web_custom_request) a web page is required.
The purpose of the web page is to take input parameters for the XML/SOAP request to the server.

What are the criteria for designing a web page to host XML/SOAP requests?

If the above approach is not correct, can you please guide me with the right information from scratch- how to use web_custom_requests i.e post web services via http/html?

Thanks much in advance.</description>
		<content:encoded><![CDATA[<p>I guess, in order to post web service request via http/html protcol(use web_custom_request) a web page is required.<br />
The purpose of the web page is to take input parameters for the XML/SOAP request to the server.</p>
<p>What are the criteria for designing a web page to host XML/SOAP requests?</p>
<p>If the above approach is not correct, can you please guide me with the right information from scratch- how to use web_custom_requests i.e post web services via http/html?</p>
<p>Thanks much in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Moncrieff</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-7271</link>
		<dc:creator>Stuart Moncrieff</dc:creator>
		<pubDate>Wed, 16 Sep 2009 11:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-7271</guid>
		<description>An &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP_403&quot; rel=&quot;nofollow&quot;&gt;HTTP 403&lt;/a&gt; response means that authentication is probably failing. It would be a good idea to have a look in the web server log to see if there is more information about why it is failing (i.e. sc-substatus and sc-win32-status).

I am happy to have a look at your script if you send it to me.

Cheers,
Stuart.</description>
		<content:encoded><![CDATA[<p>An <a href="http://en.wikipedia.org/wiki/HTTP_403" rel="nofollow">HTTP 403</a> response means that authentication is probably failing. It would be a good idea to have a look in the web server log to see if there is more information about why it is failing (i.e. sc-substatus and sc-win32-status).</p>
<p>I am happy to have a look at your script if you send it to me.</p>
<p>Cheers,<br />
Stuart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jigar</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-7259</link>
		<dc:creator>Jigar</dc:creator>
		<pubDate>Wed, 16 Sep 2009 03:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-7259</guid>
		<description>Hello,

I have a query regarding a mixed approach taken by project. It is a mixed approach of WebMethods and HTTP Post method.

Project is using WebMethods for integration. But it is not using SOAP or WSDL. It is just exposing method. A .NET client is using MSXML2.XMLHTTP40 object to send data (XML) using HTTP POST method.

I have to emulate similar. I tried code to submit data using web_custom_request and web_submit_data. I can login fine using web_set_user. But i receive HTML status code - 403 when code moves to submit request.

Following is a web_custom_request call: (do note that I have changed certain parameters)

&lt;pre lang=&quot;c&quot; line=&quot;1&quot;&gt;
web_custom_request(&quot;http://WebMethodServer:1000/invoke/ClassName.ClassName.receive/FunctionName&quot;, 
    &quot;Method=POST&quot;,
    &quot;URL=http://wmdevis:6223/invoke/GDTCostarCommon.CostarMPS.receive/mpsDataUpload&quot;,
    &quot;Mode=HTML&quot;,
    &quot;EncType=text/xml; charset=utf-8&quot;,
    &quot;Body=&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;DATA&quot;,
    LAST);
&lt;/pre&gt;

Would you please be able to help.

Regards,
Jigar</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have a query regarding a mixed approach taken by project. It is a mixed approach of WebMethods and HTTP Post method.</p>
<p>Project is using WebMethods for integration. But it is not using SOAP or WSDL. It is just exposing method. A .NET client is using MSXML2.XMLHTTP40 object to send data (XML) using HTTP POST method.</p>
<p>I have to emulate similar. I tried code to submit data using web_custom_request and web_submit_data. I can login fine using web_set_user. But i receive HTML status code &#8211; 403 when code moves to submit request.</p>
<p>Following is a web_custom_request call: (do note that I have changed certain parameters)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="c" style="font-family:monospace;">web_custom_request<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;http://WebMethodServer:1000/invoke/ClassName.ClassName.receive/FunctionName&quot;</span><span style="color: #339933;">,</span> 
    <span style="color: #ff0000;">&quot;Method=POST&quot;</span><span style="color: #339933;">,</span>
    <span style="color: #ff0000;">&quot;URL=http://wmdevis:6223/invoke/GDTCostarCommon.CostarMPS.receive/mpsDataUpload&quot;</span><span style="color: #339933;">,</span>
    <span style="color: #ff0000;">&quot;Mode=HTML&quot;</span><span style="color: #339933;">,</span>
    <span style="color: #ff0000;">&quot;EncType=text/xml; charset=utf-8&quot;</span><span style="color: #339933;">,</span>
    <span style="color: #ff0000;">&quot;Body=&lt;?xml version=<span style="color: #000099; font-weight: bold;">\&quot;</span>1.0<span style="color: #000099; font-weight: bold;">\&quot;</span> encoding=<span style="color: #000099; font-weight: bold;">\&quot;</span>UTF-8<span style="color: #000099; font-weight: bold;">\&quot;</span>?&gt;DATA&quot;</span><span style="color: #339933;">,</span>
    LAST<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Would you please be able to help.</p>
<p>Regards,<br />
Jigar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tauhid Khan</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-1505</link>
		<dc:creator>Tauhid Khan</dc:creator>
		<pubDate>Wed, 04 Mar 2009 17:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-1505</guid>
		<description>Could you please let me know what I need to do when accessing the URL needs authentication. What will need to be changed in the &quot;web_custom_request&quot; code block.

&lt;em&gt;[Stuart&#039;s Reply: To handle a web service that requires authentication, you need to put a call to the web_set_user() function at the top of your script. 

This function supports &lt;a href=&quot;http://en.wikipedia.org/wiki/Basic_access_authentication&quot; rel=&quot;nofollow&quot;&gt;Basic authentication&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Digest_access_authentication&quot; rel=&quot;nofollow&quot;&gt;Digest access authentication&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/NTLM&quot; rel=&quot;nofollow&quot;&gt;NTLM&lt;/a&gt;, NTLMv2, and &lt;a href=&quot;http://en.wikipedia.org/wiki/Kerberos_(protocol)&quot; rel=&quot;nofollow&quot;&gt;Kerberos&lt;/a&gt; (with some extra mucking around). 

Note that if the username you are authenticating with is on a domain, you may have to include the domain in the username field. e.g. web_set_user(&quot;domain\\username&quot;, &quot;password&quot;, &quot;www.example.com:443&quot;). ]&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Could you please let me know what I need to do when accessing the URL needs authentication. What will need to be changed in the &#8220;web_custom_request&#8221; code block.</p>
<p><em>[Stuart's Reply: To handle a web service that requires authentication, you need to put a call to the web_set_user() function at the top of your script. </p>
<p>This function supports <a href="http://en.wikipedia.org/wiki/Basic_access_authentication" rel="nofollow">Basic authentication</a>, <a href="http://en.wikipedia.org/wiki/Digest_access_authentication" rel="nofollow">Digest access authentication</a>, <a href="http://en.wikipedia.org/wiki/NTLM" rel="nofollow">NTLM</a>, NTLMv2, and <a href="http://en.wikipedia.org/wiki/Kerberos_(protocol)" rel="nofollow">Kerberos</a> (with some extra mucking around). </p>
<p>Note that if the username you are authenticating with is on a domain, you may have to include the domain in the username field. e.g. web_set_user("domain\\username", "password", "www.example.com:443"). ]</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Moncrieff</title>
		<link>http://www.jds.net.au/tech-tips/web-services-with-a-web-vuser/#comment-1400</link>
		<dc:creator>Stuart Moncrieff</dc:creator>
		<pubDate>Mon, 23 Feb 2009 06:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=325#comment-1400</guid>
		<description>Waldemar Sojka has written something simlar for his blog: &lt;a href=&quot;http://blog.testsautomation.com/2009/01/web-services-performance-using-loadrunner/&quot; rel=&quot;nofollow&quot;&gt;Web Services performance using LoadRunner HTTP Vuser script&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Waldemar Sojka has written something simlar for his blog: <a href="http://blog.testsautomation.com/2009/01/web-services-performance-using-loadrunner/" rel="nofollow">Web Services performance using LoadRunner HTTP Vuser script</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
