• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

C# web services http-post request

I have written a simple web services to return some sql data.

I can access it using the following url

http://localhost/webservice.asmx then from there it shows me my operations/methods. I then click the "GetBorrowers" where I input my string and then post and get my result.

I have tried everything online to have my c# winform client do a http-post response to pull the data but to no avail.

I am searching with the string '160816'

I have read this and have had no luck with it -


I end up getting in 404 error or 500 timeout.

What I am expecting is the XML result to come to me in my textbox for starts then from there I would parse out the xml.

any examples would be great as I am pulling my hair out on this one.
1 Solution
Fernando SotoRetiredCommented:
Did you add a Service Reference? If you did not please have a look at this Microsoft documentation.

How to: Add, Update, or Remove a Service Reference
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now