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

Consuming webservices

Scheduled Pinned Locked Moved ASP.NET
csharpc++asp-netvisual-studiowcf
3 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.
  • A Offline
    A Offline
    anishkannan
    wrote on last edited by
    #1

    I have to access some of data through webservices. The web services done by c++ which is hosted on linux machine. Normally when we consuming the webservices, we can do the add web reference. but in that case, we know only the ip address and port of the hosted server. How can i consuming that webservice method directly using visual studio 2008. Currently we know the methods of the web service, so just create sample web services in asp.net (*.asmx). then consuming that methods in our application, then changed the URL. Please provide correct way to consume that. Thanks

    A S 2 Replies Last reply
    0
    • A anishkannan

      I have to access some of data through webservices. The web services done by c++ which is hosted on linux machine. Normally when we consuming the webservices, we can do the add web reference. but in that case, we know only the ip address and port of the hosted server. How can i consuming that webservice method directly using visual studio 2008. Currently we know the methods of the web service, so just create sample web services in asp.net (*.asmx). then consuming that methods in our application, then changed the URL. Please provide correct way to consume that. Thanks

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      I Think you should enter a regular request path(IP:Port/servicepath) that requests the service in the URL field. being the web service developed using C++ and hosted on Linux should make no deference being the service return a text/xml response and the wizard does the remaining stuff.

      Help people,so poeple can help you.

      1 Reply Last reply
      0
      • A anishkannan

        I have to access some of data through webservices. The web services done by c++ which is hosted on linux machine. Normally when we consuming the webservices, we can do the add web reference. but in that case, we know only the ip address and port of the hosted server. How can i consuming that webservice method directly using visual studio 2008. Currently we know the methods of the web service, so just create sample web services in asp.net (*.asmx). then consuming that methods in our application, then changed the URL. Please provide correct way to consume that. Thanks

        S Offline
        S Offline
        sund7wells
        wrote on last edited by
        #3

        Instead of creating proxy to web service, you can try using Http Post/Get using HttpWebRequest/HttpWebResponse (WebRequest class in System.Net) to post a request to web service and receive response from the same. Hope it helps.

        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