Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3948708
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:24:25+00:00 2026-05-20T01:24:25+00:00

I am looking at adding SMS abilities to my WCF service. I found a

  • 0

I am looking at adding SMS abilities to my WCF service. I found a cheap SMS service called Penny SMS.

Their interface supports json. But I have no idea how to call it in my WCF service.

Here is the interface/example:

Sample JSON-RPC Request

{ "method": "send",
  "params": [
            "YOUR_API_KEY",
            "msg@mycompany.com",
            "5551231234",
            "Test Message from PENNY SMS"
            ]
}

How would I call that with C# from a WCF service? What I am looking for is a way to wrap this into a method call. Something like:

StaticSMSClass.SendSMS("1234567890", "My Message to send");

Note they also support an XML-RPC API if that is more doable from C#.

UPDATE: I made a stab at creating a call myself, but it did not work. I am going to post my attempt in a separate question and see if anyone has a way to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:24:26+00:00Added an answer on May 20, 2026 at 1:24 am

    You need to send a HTTP POST with the JSON message to the remote server. You can do this with HttpWebRequest. You either build the JSON manually (the messages seem simple), or define types for it and use a JSON serializer.

    MSDN has an example, for your case it would look something like (untested):

    string json = // Your JSON message
    WebRequest request = WebRequest.Create ("http://api.pennysms.com/jsonrpc");
    request.Method = "POST";
    var postData = Encoding.UTF8.GetBytes(json);
    request.ContentLength = postData.Length;
    request.ContentType = "text/json";
    using(var reqStream = request.GetRequestStream()) 
    {
        reqStream.Write(postData);
    }
    using(var response = request.GetResponse())
    {
        // Response status is in response.StatusCode
        // Or you can read the response content using response.GetResponseStream();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking at adding master pages to an existing site but have found that
I’m adding authentication for my WCF services, and I’m looking at the UserNamePasswordValidator and
I'm looking at adding scripting functionality to an existing codebase and am weighing up
I'm looking at adding Visual Studio Database Edition (aka. VSDE) to my version of
I'm looking adding Subversion's revision number to the name of each .js file we
Looking at adding some data graphing to a new iPhone app in development (ala
I'm looking at adding logging to an application, and I'm considering using Kiwi syslogd
I am looking into adding unit tests at work. I used MbUnit in the
I'm looking into adding some unit tests for some classes in my data access
I'm looking into adding scripting to my C# application. I've been debating between Lua

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.