CSharp SMS

Back to SMS Notify!

Consuming a Web Service with C#
We will use SMS Notify! for this example. All of the other Web Services are just as easy to consume.

1. Open a new/existing project. 2. Right click "Add Web Reference" in the Solution Explorer on the Project you wish to add the service to. 3. Put the WSDL that you wish to consume in the URL block. (ex: http://ws.cdyne.com/SmsWS/SMS.asmx?wsdl) 4. Change "Web Reference Name" to something more usable, like SMSws.

Use code like the following:

That is all there is to sending a SMS via C#. The object ret will contain all status information.