views:

83

answers:

1

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?

+1  A: 

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

http://stackoverflow.com/questions/618900/enable-asp-net-asmx-web-service-for-http-post-get-requests

Josh Yeager
oh, +1 for the help :), will be back after testing :)
Madi D.
Works like a charm ( actually when i tested i forgot to enable them, so it didn't work at 1st, then i remembered to do it and it worked! , which definitely proves your answer :) )
Madi D.
Great, glad to hear it.
Josh Yeager