Comsuming RESTlet Web Service in ASP.NET 3.5 with JSON Parameter
-
from where you want to consume the service? from the client you can send an ajax request like below
var jsonStr = JSON.stringify(reqObj);
$.ajax({
type: "POST",
dataType: "json",
url: "http://localhost/MyService/PostSomething",
contentType: "application/json; charset=utf-8",
data: jsonStr,
success: function (html) {
alert(html);
}
});From the server you need to send an HttpWebrequest
-
from where you want to consume the service? from the client you can send an ajax request like below
var jsonStr = JSON.stringify(reqObj);
$.ajax({
type: "POST",
dataType: "json",
url: "http://localhost/MyService/PostSomething",
contentType: "application/json; charset=utf-8",
data: jsonStr,
success: function (html) {
alert(html);
}
});From the server you need to send an HttpWebrequest
Dear, Scenario is: We have to push data through a web service which is already developed in RESTlet by some other client. And we have to consume it in ASP.NET in our ERP. The parameter shall passed to web service is JSON format. The only question from my side is: 1): How we consume the RESTlet Web Service is ASP.NET. Developed by by some other client.? 2): Where we will call it.? bcz some people suggest in ".CS" & some one suggest in Html page. I am beginner & little bit confuse. Kindly help me out.? Implementation at our end is very critical.
-
Dear, Scenario is: We have to push data through a web service which is already developed in RESTlet by some other client. And we have to consume it in ASP.NET in our ERP. The parameter shall passed to web service is JSON format. The only question from my side is: 1): How we consume the RESTlet Web Service is ASP.NET. Developed by by some other client.? 2): Where we will call it.? bcz some people suggest in ".CS" & some one suggest in Html page. I am beginner & little bit confuse. Kindly help me out.? Implementation at our end is very critical.
-
-
from where you want to consume the service? from the client you can send an ajax request like below
var jsonStr = JSON.stringify(reqObj);
$.ajax({
type: "POST",
dataType: "json",
url: "http://localhost/MyService/PostSomething",
contentType: "application/json; charset=utf-8",
data: jsonStr,
success: function (html) {
alert(html);
}
});From the server you need to send an HttpWebrequest
I want to call the Restlet service to push data on vendor server. How & where should we call the following in ASP.NET in C#: https://xx.xx.xxx.com/app/site/hosting/restlet.nl?script=78&deploy=4&MyData= MyData Format(JSON):- [ { "Name":"John", "DOB": "20/09/2013", "Age":"28" }, "Name":"Kies", "DOB": "20/08/2013", "Age":"23" }] Please Help me out...........