Announcement

Collapse
No announcement yet.

Question on calling WCF

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Question on calling WCF

    Can anyone please point me to an example where WCF service is called. I have very simple service with method that takes string and returns string. Thanks!

    #2
    Hello,

    The following sample calls a WebService endpoint, so that should be similar.

    https://deck.net/webservice

    Here's the code we're using for the WebService:

     
     using Newtonsoft.Json; using System.Web.Script.Services; using System.Web.Services;  namespace Deck.www {     /// <summary>     /// Summary description for DeckServices     /// </summary>     [WebService(Namespace = "http://tempuri.org/")]     [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]     [System.ComponentModel.ToolboxItem(false)]     [ScriptService]     public class DeckServices : WebService     {         [WebMethod]         [ScriptMethod(UseHttpGet = true)]         public object Bounce(object value)         {             return value;         }     } }
    Hope this helps.

    Comment

    Working...
    X