Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Comsuming RESTlet Web Service in ASP.NET 3.5 with JSON Parameter

Comsuming RESTlet Web Service in ASP.NET 3.5 with JSON Parameter

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfjsonhelp
6 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sanjay Kushwaha
    wrote on last edited by
    #1

    I want to consume RESTlet Web Services in ASP.NET 3.5 to push data with JSON parameter. Actually i never ever use RESTlet in ASP.NET. Can anybody help me out?

    J R 2 Replies Last reply
    0
    • S Sanjay Kushwaha

      I want to consume RESTlet Web Services in ASP.NET 3.5 to push data with JSON parameter. Actually i never ever use RESTlet in ASP.NET. Can anybody help me out?

      J Offline
      J Offline
      Jameel VM
      wrote on last edited by
      #2

      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

      S 2 Replies Last reply
      0
      • J Jameel VM

        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

        S Offline
        S Offline
        Sanjay Kushwaha
        wrote on last edited by
        #3

        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.

        J 1 Reply Last reply
        0
        • S Sanjay Kushwaha

          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.

          J Offline
          J Offline
          Jameel VM
          wrote on last edited by
          #4

          It depends upon your requirement.What are the functionalities you try to achieve through webservices?

          1 Reply Last reply
          0
          • S Sanjay Kushwaha

            I want to consume RESTlet Web Services in ASP.NET 3.5 to push data with JSON parameter. Actually i never ever use RESTlet in ASP.NET. Can anybody help me out?

            R Offline
            R Offline
            Rajesh Toleti
            wrote on last edited by
            #5

            Sanjay, Refer here, http://aspalliance.com/2052_Consuming_JSON_and_XML_Webservices_from_an_HTML_Page_using_jQuery[^]

            1 Reply Last reply
            0
            • J Jameel VM

              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

              S Offline
              S Offline
              Sanjay Kushwaha
              wrote on last edited by
              #6

              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...........

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups