I have a web service that I'm testing at the moment which seems to be working fine as long as I pass the correct parameters to it. If I use a browser to go directly to the result of the web service: ie:
http://localhost:1468/Service1.asmx/IncreaseDate
...I get an exception:
System.InvalidOperationException: Missing parameter: inDate.
It seems that in this case, control is not being passed to my software so I cannot validate the input (albeit absent). I would prefer this scenario to fail more gracefully as opposed to resulting in an exception. Is there a way to catch this and return something in a controlled fashion?
I'm new to web services. Any help would be gratefully received.
Thanks in advance.
http://localhost:1468/Service1.asmx/IncreaseDate
...I get an exception:
System.InvalidOperationException: Missing parameter: inDate.
It seems that in this case, control is not being passed to my software so I cannot validate the input (albeit absent). I would prefer this scenario to fail more gracefully as opposed to resulting in an exception. Is there a way to catch this and return something in a controlled fashion?
I'm new to web services. Any help would be gratefully received.
Thanks in advance.