Contents tagged with SMS

  • SMS Task for NAnt using BT SDK

    What:
    A simple NAnt custom task to send SMS messages using the BT SDK.

    Why:
    Maybe you want to ping your manager every time the build fails :).

    How:
    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=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

     

    --b)  And this can be anywhere inside <configuration> tag.

     

    <microsoft.web.services3>

        <security>

          <x509 storeLocation="CurrentUser" />

        </security>

        <policy fileName="wse3policyCache.config" />

        <diagnostics>

          <trace enabled="false"/>

        </diagnostics>

    </microsoft.web.services3>

     

    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:

     

    <target name="smstask">

      <echo message="Before executing task" />

      <sms to="phone.number" message="Build Failure" />

      <echo message="After executing task" />

    </target>

     

    Where:

    Download here

    Read more...

  • BT Web21C SDK is Live now

    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.

    Read more...