I have started to play with connecting to a .Net web service that I created. I wanted to figure out how to dynamicaly connect to it without creating a web reference to it. I have so far been able to connect to it and execute a method with the following signature,...
[WebMethod]
public string Execute(string command)
What I want to do now is call a method with the following signature,..
[WebMethod]
public string Execute(string command, out string commandResult)
but everytime I run through the following code,...
httpRequest.Get RequestStream() .Write(requestD ata, 0, requestData.Len gth);
httpResponse = (HttpWebRespons e)httpRequest.G etResponse();
where requestData is,...
"command=pi ng"
I get the following execption from the second line,...
The remote server returned an error: (500) Internal Server Error.
What do I have to do to use an out parameter with WebRequest and and WebResponce?