0

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?

Madi D.
  • 1,980
  • 5
  • 23
  • 44

1 Answers1

1

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

Community
  • 1
  • 1
Josh Yeager
  • 3,763
  • 1
  • 25
  • 29
  • oh, +1 for the help :), will be back after testing :) – Madi D. Dec 29 '09 at 14:06
  • 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. Dec 29 '09 at 15:08