<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dotnetraja's Weblog &#187; Web service</title>
	<atom:link href="http://dotnetraja.wordpress.com/category/web-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetraja.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 11:25:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dotnetraja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4ba1bff7a8d3dcdd355f1044aa421165?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dotnetraja's Weblog &#187; Web service</title>
		<link>http://dotnetraja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetraja.wordpress.com/osd.xml" title="Dotnetraja&#8217;s Weblog" />
		<item>
		<title>Consuming web service from VBScript file</title>
		<link>http://dotnetraja.wordpress.com/2007/10/25/consuming-web-service-from-vbscript-file/</link>
		<comments>http://dotnetraja.wordpress.com/2007/10/25/consuming-web-service-from-vbscript-file/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 12:24:31 +0000</pubDate>
		<dc:creator>Raja Baireddy</dc:creator>
				<category><![CDATA[Web service]]></category>

		<guid isPermaLink="false">http://dotnetraja.wordpress.com/2007/10/25/consuming-web-service-from-vbscript-file/</guid>
		<description><![CDATA[Hi All,
For our current project, the requirement was to call a web service (Web service internally will do some task) on a particular time interval say hourly, daily, monthly etc&#8230;
The easy solution we adopted is consuming this web service in VBScript file and schedule this file in the MS-Scheduler. The VBScript looks like
 Set oServerXML = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=3&subd=dotnetraja&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Hi All,</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">For our current project, the requirement was to call a web service (Web service internally will do some task) on a particular time interval say hourly, daily, monthly etc&#8230;</font></p>
<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">The easy solution we adopted is consuming this web service in VBScript file and schedule this file in the MS-Scheduler. The VBScript looks like</font></p>
<p><font face="Times New Roman"> </font><strong><span style="font-size:8pt;font-family:Arial;">Set oServerXML = CreateObject(&#8220;Msxml2.ServerXMLHTTP&#8221;) </span></strong><strong><span style="font-size:8pt;font-family:Arial;">oServerXML.Open GET&#8221;,&#8221;http://chm18/purgeservice/purgeservice.asmx/DeleteArchiveFolder1&#8243;, False</span></strong><strong><span style="font-size:8pt;font-family:Arial;">oServerXML.setRequestHeader &#8220;Content-Type&#8221;,&#8221;application/x-www-form-urlencoded&#8221; </span></strong><strong><span style="font-size:8pt;font-family:Arial;">oServerXML.send</span></strong><strong><span style="font-size:8pt;font-family:Arial;">Set oServerXML = nothing</span></strong><strong><span style="font-family:Arial;"> </span></strong><strong><span style="font-family:Arial;"> </span></strong></p>
<p><strong><span style="font-family:Arial;"></span></strong><span style="font-family:Arial;"></span></p>
<p><span style="font-family:Arial;">Just copy the above code in a VBScript file and schedule this file in a MS-Scheduler.</span><span style="font-family:Arial;"> </span><span style="font-family:Arial;">While executing this file if u not yet get the result means then try to execute the web service from .net application using the HTTPWebRequest method. if this is executing without errors means then the VBScript file executes correctly.</span><span style="font-family:Arial;"> </span><strong><span style="font-family:Arial;">Note</span></strong><span style="font-family:Arial;">: While executing the web service using HTTPWebRequest method if u got the “<strong>The remote server returned an error: (500) Internal Server Error</strong>” means then go and add the following code snippet in the web.config file of the web service</span><span style="font-family:Arial;"><span>                   </span></span></p>
<p align="center"><span style="font-family:Arial;"><span>     </span></span><span style="font-size:11pt;font-family:Arial;">&lt;webServices&gt;<br />
           &lt;protocols&gt;<br />
                                         &lt;add name=&#8221;HttpGet&#8221;/&gt;<br />
                                          &lt;add name=&#8221;HttpPost&#8221;/&gt;<br />
         &lt;/protocols&gt;<br />
&lt;/webServices&gt;</span></p>
<p align="left"><span style="font-size:11pt;font-family:Arial;"></span><span style="font-size:11pt;font-family:Arial;"> </span><span style="font-size:11pt;font-family:Arial;">That’s all the web service will works fine….</span><span style="font-size:11pt;font-family:Arial;"> </span></p>
<p style="text-align:justify;margin:0;" class="MsoNormal"><span style="font-size:11pt;font-family:Arial;">Regards</span></p>
<p><span style="font-size:11pt;font-family:Arial;">DotnetRaja</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dotnetraja.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dotnetraja.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetraja.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetraja.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetraja.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetraja.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetraja.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetraja.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetraja.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetraja.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetraja.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetraja.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetraja.wordpress.com&blog=1987605&post=3&subd=dotnetraja&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetraja.wordpress.com/2007/10/25/consuming-web-service-from-vbscript-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8fd93ac65332db247ad1764fbf130cf7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raja Baireddy</media:title>
		</media:content>
	</item>
	</channel>
</rss>