<?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>Waves &#187; webservice</title>
	<atom:link href="http://www.aswinanand.com/category/webservice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aswinanand.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Dec 2011 09:39:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<cloud domain='www.aswinanand.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Free SMS Web Service Updated</title>
		<link>http://www.aswinanand.com/2009/02/free-sms-web-service-updated/</link>
		<comments>http://www.aswinanand.com/2009/02/free-sms-web-service-updated/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 05:52:22 +0000</pubDate>
		<dc:creator>Aswin Anand</dc:creator>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=264</guid>
		<description><![CDATA[Hello friends, the due to recent changes at way2sms, our SMS web service has undergone major changes. If you had downloaded the PHP scripts or java library and if you are facing problems while sending SMS, try downloading the new version of the library at the relevant links below. SMS Web Service (PHP library + [...]]]></description>
			<content:encoded><![CDATA[<p>Hello friends, the due to recent changes at way2sms, our SMS web service has undergone major changes.</p>
<p>If you had downloaded the PHP scripts or java library and if you are facing problems while sending SMS, try downloading the new version of the library at the relevant links below.</p>
<ol>
<li>SMS Web Service (PHP library + web service) - <a title="Free SMS Web Service" href="http://www.aswinanand.com/blog/2008/07/send-free-sms-web-service/">http://www.aswinanand.com/blog/2008/07/send-free-sms-web-service/</a></li>
<li>Java Library to send SMS - <a title="Free SMS Java Library" href="http://www.aswinanand.com/blog/2009/01/free-sms-web-service-java-library/">http://www.aswinanand.com/blog/2009/01/free-sms-web-service-java-library/</a></li>
</ol>
<p>Hope you enjoy using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aswinanand.com/2009/02/free-sms-web-service-updated/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Send Free SMS &#8211; Web Service</title>
		<link>http://www.aswinanand.com/2008/07/send-free-sms-web-service/</link>
		<comments>http://www.aswinanand.com/2008/07/send-free-sms-web-service/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 03:42:31 +0000</pubDate>
		<dc:creator>Aswin Anand</dc:creator>
				<category><![CDATA[techblog]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=203</guid>
		<description><![CDATA[Update: There seems to be some problem when the API is being accessed from my domain. Kindly try hosting the script in your own domains. Hi friends, if you are in India and if you are developing software prototypes which has to send SMS alerts to various Indian mobile numbers, you needn’t spend a lot [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong><span style="color: #ff6600;">Update:</span> There seems to be some problem when the API is being accessed from my domain. <a title="Deploy the script in your own domain" href="#deploy">Kindly try hosting the script in your own domains</a>.</strong></em></p>
<p>Hi friends, if you are in India and if you are developing software prototypes which has to send SMS alerts to various Indian mobile numbers, you needn’t spend a lot to buy SMS credits at the various sites. Over the last weekend, I spent some time hacking up a quick SOAP based web service which you can consume in your programs.</p>
<p><strong><em>Please note that you need to create an account at <a title="way2sms Website" href="http://www.way2sms.com/" target="_blank">www.way2sms.com</a> before proceeding further.</em></strong></p>
<p><strong>How to Use &#8211; Method 1:</strong></p>
<p>Currently the web service is active at <a title="Free SMS Web Page" href="http://www.aswinanand.com/sendsms.php" target="_blank">http://www.aswinanand.com/sendsms.php</a>. This accepts four parameters.</p>
<table border="1" align="center">
<tbody>
<tr align="center">
<th>Parameter Name</th>
<th>Description</th>
</tr>
<tr>
<td align="center">uid</td>
<td>This represents the 10 digit phone number with which you have to login at way2sms.<br />
<span style="color: #ff0000;"><strong>Note: </strong>This web service may not work if you try logging in with email address.</span></td>
</tr>
<tr>
<td align="center">pwd</td>
<td>Your way2sms password</td>
</tr>
<tr>
<td align="center">phone</td>
<td>One or more phone numbers to which SMS has to be sent. Phone numbers should be separated by semicolon (;). E.g. 9812345678;9933445566</td>
</tr>
<tr>
<td align="center">msg</td>
<td>Message that has to be sent.</td>
</tr>
</tbody>
</table>
<p>The URL &#8211; http://www.aswinanand.com/sendsms.php &#8211; can be invoked with the parameters as follows:</p>
<p>http://www.aswinanand.com/sendsms.php?<strong><span style="color: #ff6600;">uid=</span></strong>9933445566&amp;<strong><span style="color: #ff6600;">pwd=</span></strong>password&amp;<span style="color: #ff6600;"><strong>phone=</strong></span> 9812345678;9933445566&amp;<span style="color: #ff6600;"><strong>msg=</strong></span>Hello+World</p>
<p>You can also do a HTTP POST to the same URL to send the SMS. Here&#8217;s an example:</p>
<blockquote><p>&lt;form method=&#8221;post&#8221; action=&#8221;<a href="http://www.aswinanand.com/sendsms.php">http://www.aswinanand.com/sendsms.php</a>&#8220;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;uid&#8221; value=&#8221;9933445566&#8243; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;pwd&#8221; value=&#8221;password&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;phone&#8221; value=&#8221;9812345678;9933445566&#8243; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;msg&#8221; value=&#8221;Hello World&#8221; /&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Send SMS&#8221; /&gt;<br />
&lt;/form&gt;</p></blockquote>
<p><strong>How to Use &#8211; Method 2:</strong></p>
<p>The functionality is also exposed as a SOAP (Simple Object Access Protocol) WSDL (Web Service Description Language). WSDL can be accessed at <a title="Free SMS Web Service WSDL" href="http://www.aswinanand.com/sendsms.php?wsdl" target="_self">http://www.aswinanand.com/sendsms.php?wsdl</a>. To know more about how to use this WSDL in Microsoft Visual Studio, <a title="Consuming a web service." href="http://www.aswinanand.com/blog/2006/02/consuming-a-java-webservice-in-net/">check out this article</a>.</p>
<p><a name="deploy"></a><strong>Deploying on your own Server:</strong></p>
<p>To deploy this SMS script on your own server, first <a title="SMS source code" href="http://www.aswinanand.com/downloads/sendsms.zip">download the source code</a> &amp; follow the instructions:</p>
<ol>
<li>Let us assume that you wish to run the service at http://www.example.com/sms/sendsms.php. Here, http://www.example.com/ is your domain, &#8220;sms&#8221; is the folder and &#8220;sendsms.php&#8221; is the PHP script in that folder.</li>
<li>Hence, using FTP or SSH, login to your domain hosting space and create a folder named &#8220;sms&#8221;.</li>
<li>Extract the source code to the &#8220;sms&#8221; folder. If you don&#8217;t want to expose a SOAP WSDL, feel free to skip to step 6.</li>
<li>Since the SMS source code supports SOAP, you have to <a title="PHP NuSOAP Library" href="http://sourceforge.net/project/platformdownload.php?group_id=57663">download the &#8216;nusoap&#8217; library</a>. Then extract the &#8216;nusoap&#8217; library to the same &#8220;sms&#8221; folder.</li>
<li>Once everything is extracted, the folder structure should be:
<ul>
<li>example.com
<ul>
<li><strong>sms/ </strong>
<ul>
<li>sendsms.php</li>
<li>htmlparser.inc (optional)</li>
<li><strong>nusoap/ </strong>
<ul>
<li>class.nusoap_base.php</li>
<li>class.soap_transport_http.php</li>
<li>class.wsdlcache.php</li>
<li>class.soap_fault.php</li>
<li>class.soap_val.php</li>
<li>class.xmlschema.php</li>
<li>class.soap_parser.php</li>
<li>class.soapclient.php</li>
<li>class.soap_server.php</li>
<li>class.wsdl.php</li>
<li>nusoapmime.php</li>
<li>nusoap.php</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Try accessing your web service at http://www.example.com/sms/sendsms.php now.</li>
</ol>
<div>You can use the same parameters described above for sendsms.php and access it as:</div>
<p>http://www.example.com/sms/sendsms.php?<strong><span style="color: #ff6600;">uid=</span></strong>9933445566&amp;<strong><span style="color: #ff6600;">pwd=</span></strong>password&amp;<span style="color: #ff6600;"><strong>phone=</strong></span> 9812345678;9933445566&amp;<span style="color: #ff6600;"><strong>msg=</strong></span>Hello+World</p>
<p>or you can also do a HTTP POST as indicated above.</p>
<p><strong>License Information:</strong></p>
<p>The source code is licensed under &#8220;Creative Commons Attribution-Noncommercial&#8221;. Downloading the file(s) mean that you have agreed <a title="License Information" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank">license terms</a>.</p>
<p><strong>Download:</strong></p>
<p><a title="Free SMS PHP source code" href="http://www.aswinanand.com/downloads/sendsms.zip">Download the PHP source code here</a>.</p>
<p><strong>Other Languages:</strong></p>
<p>Currently this SMS web service is available in the following programming languages:</p>
<ul>
<li><a title="Free SMS Java Library" href="http://www.aswinanand.com/blog/2009/01/free-sms-web-service-java-library/">Java JAR Library</a></li>
</ul>
<div>
<p><strong>Misc:</strong></p>
<p>If you liked this web service, <a title="Digg Free SMS Web Service" href="http://digg.com/software/Free_SMS_Web_Service" target="_blank">please digg it</a> <img src='http://www.aswinanand.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Kindly take it for a test drive and let me know if you find any bugs.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aswinanand.com/2008/07/send-free-sms-web-service/feed/</wfw:commentRss>
		<slash:comments>517</slash:comments>
		</item>
		<item>
		<title>Consuming a Java Webservice in .Net</title>
		<link>http://www.aswinanand.com/2006/02/consuming-a-java-webservice-in-net/</link>
		<comments>http://www.aswinanand.com/2006/02/consuming-a-java-webservice-in-net/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 11:28:00 +0000</pubDate>
		<dc:creator>Aswin Anand</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.aswinanand.com/blog/2006/02/24/consuming-a-java-webservice-in-net/</guid>
		<description><![CDATA[hi!! guys, yesterday i developed a simple &#8220;Hello World!&#8221; webservice with java. With Netbeans 5.0 IDE its a breeze to create web services. It comes bundled with Apache Tomcat 5.5.9 and Sun Java Application Server 8.2. You can find the quickstart tutorial here to develop web services. Just follow that tute and you will be [...]]]></description>
			<content:encoded><![CDATA[<p>hi!! guys, yesterday i developed a simple &#8220;Hello World!&#8221; webservice with java. With Netbeans 5.0 IDE its a breeze to create web services. It comes bundled with Apache Tomcat 5.5.9 and Sun Java Application Server 8.2.</p>
<p>You can find the <a href="http://www.netbeans.org/kb/50/quickstart-webservice.html">quickstart tutorial here</a> to develop web services. Just follow that tute and you will be fine. I will tell you how to consume the same using .net. I used Visual Studio 2005 to consume this service. I assume that you have the url for the wsdl of the webservice which should be similar to, <span style="font-weight: bold;">http://localhost:8080/WebApplication1/NewWebService?WSDL</span>.</p>
<p><span style="color: rgb(255, 0, 0);">1.</span> Open Visual studio. &#8220;File->New->Website&#8221;. If using VS2003 then, &#8220;File->New->Project->ASP.NET Web Application&#8221;.<br /><span style="color: rgb(255, 0, 0);">2.</span> A web application should have been created by now and you have the &#8220;design view&#8221; of &#8220;default.aspx&#8221; or any other aspx page of your choice.<br /><span style="color: rgb(255, 0, 0);">3.</span> Press Ctrl+Alt+L or View->Solution Explorer. Right click on your project name and select &#8220;Add Web Reference&#8221;. In the windows that pops up, give the WSDL url and an &#8220;Instance Name&#8221;. My instance name was &#8220;JavaAdd&#8221;.<br /><span style="color: rgb(255, 0, 0);">4.</span> Add a button and a label to the asp.net page. Double click the button and paste the following code.</p>
<p><span style="font-weight: bold; color: rgb(255, 102, 0);">VB.NET</span><br /><span style="font-family:courier new;">        Dim js As New JavaAdd.NewWebService()</span><span style="font-family:courier new;"><br />Dim myadd As New JavaAdd.add()<br /></span><span style="font-family:courier new;">Dim myaddRes As New JavaAdd.addResponse()<br /></span><span style="font-family:courier new;">myadd.int_1 = 10</span><br /><span style="font-family:courier new;">myadd.int_2 = 10</span><br /><span style="font-family:courier new;">        myaddRes = js.add(myadd)</span><br /><span style="font-family:courier new;">        Label1.Text = myaddRes.result</span><br /><span style="font-weight: bold; color: rgb(255, 102, 0);"><br />C#</span><br /><span style="font-family:courier new;">        JavaAdd.NewWebService js = new JavaAdd.NewWebService();</span> <span style="font-family:courier new;">     <br />JavaAdd.add myadd = new JavaAdd.add();<br /></span><span style="font-family:courier new;">JavaAdd.addResponse myaddRes=new JavaAdd.addResponse();</span> <span style="font-family:courier new;">        myadd.int_1=10;</span><br /><span style="font-family:courier new;">myadd.int_2=10;<br /></span><span style="font-family:courier new;">myaddRes=js.add(myadd);</span> <span style="font-family:courier new;">        Label1.Text=Convert.ToString(myaddRes.result);</span></p>
<p>Instead of &#8220;sayHi&#8221; method in the quickstart tute, i created a method called &#8220;add&#8221; which accepts 2 integer parameters and returns an integer after adding them up.</p>
<p><span style="color: rgb(255, 0, 0);">5.</span> Press F5 now. You should get something similar to these.</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4378/1482/1600/jws1.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4378/1482/320/jws1.jpg" alt="" border="0" /></a></p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4378/1482/1600/jws2.jpg"><img style="margin: 0pt 0pt 10px 10px; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4378/1482/320/jws2.jpg" alt="" border="0" /></a></p>
<p>Thats it for this post&#8230;bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aswinanand.com/2006/02/consuming-a-java-webservice-in-net/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

