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