Contents tagged with SMS
A simple NAnt custom task to send SMS messages using the BT SDK.
Maybe you want to ping your manager every time the build fails :).
1. Setup the SDK on your PC using my tutorial here. Please note that you need to register your own certificate and generate a wse3policyCache.config file which will be used in the next step.
2. Copy the SMS.Tasks.dll, btsdk.dll, btsdkcomponents.dll, wse3policyCache.config in your Nant/bin directory.
3. Change the Nant.exe.config to include the following entries so that it can pick up WSE config file. I suggest making a backup of that file before doing any changes.
--a) This goes in <configSections> tag.
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
--b) And this can be anywhere inside <configuration> tag.
<x509 storeLocation="CurrentUser" />
<policy fileName="wse3policyCache.config" />
I have provided a sample Nant file in case you need to refer to it. Please do not just replace your existing file with this as it will overwrite any existing configuration.
4. Sample usage:
<echo message="Before executing task" />
<sms to="phone.number" message="Build Failure" />
<echo message="After executing task" />
In my post here, I mentioned BT releasing a new SDK for developing communication services. The SDK is now Live and you can use it for production application. The service pricing is listed here which in my opinion is very generous.
With the help of SDK, you can easily build your own new cool startup such as Jajah and co. To summarize the current services provided by the SDK, letme draw a picture as a picture* == 1000 words..
* This is not an official diagram from the SDK Team but this shows my understanding of the capabilities provided by the SDK. For more information visit http://sdk.bt.com.
There are few API changes in the latest version therefore my "Hello World" tutorial will not work now. However, you can easily download and browse through the SMS sample to see the updated API.