Madi D.
Madi D.

Reputation: 1990

ASP.NET : sending a soap request in a HTTP post request to a webservice

I have a webservice that exposes a function called ADD(int a, int b)

and i am trying to send a request to it without adding a wsdl/reference and then calling the function, In other words, i want to explicitly send a request to the webservice address.

so if i send a POST request with a well-formatted-soap XML envelope as the message, would that work?

Upvotes: 0

Views: 2501

Answers (1)

Josh Yeager
Josh Yeager

Reputation: 3793

If you enable HttpGet and/or HttpPost in your web.config, you can do what you are asking.

Enable ASP.NET ASMX web service for HTTP POST / GET requests

Upvotes: 1

Related Questions