static void Main(string[] args) { //Sample of encryption /* EncryptionDecryption _entryption = new EncryptionDecryption(); string _s1 = "12345"; string _s2 = string.Empty; string _key = string.Empty; _key = _entryption.DecryptPermanent("DsGSLNYJlj0Xhl0BnMFKNxGN5nHc79O65nFj2wA5Ex4uB2pVEnlHaA==", true); _s2 = _entryption.Encrypt(_s1, _key, true); */ //Sample of decryption /* EncryptionDecryption _entryption = new EncryptionDecryption(); string _s1 = "12345"; string _s2 = string.Empty; string _key = string.Empty; _key = _entryption.DecryptPermanent("DsGSLNYJlj0Xhl0BnMFKNxGN5nHc79O65nFj2wA5Ex4uB2pVEnlHaA==", true); _s2 = _entryption.Decrypt(_s1, _key, true); */ EncryptionDecryption _entrypt = new EncryptionDecryption(); //DsGSLNYJlj0Xhl0BnMFKNxGN5nHc79O65nFj2wA5Ex4uB2pVEnlHaA== //_entrypt. string _userid = "waldengroup\\administrator~0Griswold1"; string _key = _entrypt.DecryptPermanent("DsGSLNYJlj0Xhl0BnMFKNxGN5nHc79O65nFj2wA5Ex4uB2pVEnlHaA==", true); string _id = _entrypt.Encrypt(_userid,_key,true); _id = _id.Replace("+", "~"); //ProviderList //http://localhost:56630/servicestack/json/syncreply/ProviderList //http://localhost:56630/servicestack/json/syncreply/patientlist //String uri = "http://localhost:64345/servicestack/json/syncreply/checkuserid?id=" + _id; //String uri = "http://walden.myftp.org/barkorders/servicestack/json/syncreply/checkuserid?id=" + _id; //String uri = "http://walden.myftp.org/barkorders/servicestack/json/syncreply/getpatientlist?id=27"; //string uri = "http://localhost:64350/servicestack/json/syncreply/getadtdata"; //String uri = "http://localhost:56630/servicestack/json/syncreply/dailyexerciseroutine?dayofweek=Tuesday"; //String uri = "http://localhost:56630/servicestack/json/syncreply/clientexerciseresults?results=Tuesday"; String uri = "http://localhost:56630/servicestack/json/syncreply/retrieveappointment?id=8606803763"; //String uri = "http://localhost:56630/servicestack/json/syncreply/clientexercises?clientid=1"; //getpatientlist //String uri = "http://localhost:64345/servicestack/json/syncreply/removefromnopatientlist?id=27"; //String uri = "http://localhost:64345/servicestack/json/syncreply/UpdateNoPatientRecord?id=27"; //String uri = "http://100.0.3.128/InterfaceUtility/servicestack/json/syncreply/UpdateNoPatientRecord?id=27"; //tring uri = "http://100.0.3.128/InterfaceUtility/servicestack/json/syncreply/getmiddlesexlog"; ///getoutstandingpatients/{_providerID}" Stream stream; StreamReader reader; String response = null; WebClient webClient = new WebClient(); //System.Collections.Specialized System.Collections.Specialized.NameValueCollection reqparm = new System.Collections.Specialized.NameValueCollection(); // string example = "1~2013-02-04~Saturday February 2, 2013~2~1~1^1~2013-02-04~Saturday February 2, 2013~4~2~1^1~2013-02-04~Saturday February 2, 2013~5~3~1^1~2013-02-04~Saturday February 2, 2013~2~4~1^1~2013-02-04~Saturday February 2, 2013~2~5~1^1~2013-02-04~Saturday February 2, 2013~2~6~1^1~2013-02-04~Saturday February 2, 2013~4~7~1^1~2013-02-04~Saturday February 2, 2013~4~8~1^1~2013-02-04~Saturday February 2, 2013~4~9~1^1~2013-02-04~Saturday February 2, 2013~5~10~1^1~2013-02-04~Saturday February 2, 2013~5~11~1^"; // reqparm.Add("Results",example); //Dim reqparm As New Specialized.NameValueCollection //reqparm.Add("param1", "somevalue") //reqparm.Add("param2", "othervalue") //Dim responsebytes = client.UploadValues(someurl, "POST", reqparm) //Dim responsebody = (New Text.UTF8Encoding).GetString(responsebytes) //var xx = webClient.UploadValues(uri, "POST",reqparm); //Dim responsebytes = client.UploadValues(someurl, "POST", reqparm) //webClient. // open and read from the supplied URI stream = webClient.OpenRead(uri); reader = new StreamReader(stream); response = reader.ReadToEnd(); ///servicestack/[xml|json|html|jsv|csv]/[syncreply|asynconeway]/[servicename] //String request = reader.ReadToEnd(); }