[Mono-list] Problem with calling webservice

SyedSalmanAkbar king.salman.heart at gmail.com
Tue Apr 2 19:19:31 UTC 2013


We have desktop application created in vs2010 using c# and .net framwork
3.5. We have started our port of this code to mono so that we can give a
version for MAC. Now the first hurdle we are facing is this.
We have an api http://api.keynetcontrol2.com/ . The very first function that
is called on this api is "CheckSoftwareVersions" For porting of mono we are
using mono tools. Now the problem is that when the following code executes
in debug mode it gives this exception
"System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.GetRequestStream () [0x0004a] in
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(System.String method_name, System.Object[] parameters) [0x00069] in


 public static string CheckVersionNumber(string versionNum)

                JobCenter jc = new JobCenter();
                jc.Timeout = 16000;
                return jc.CheckSoftwareVersions(versionNum);          

"JobCenter" is the web reference to "http://api.keynetcontrol2.com" which
was added by "add web reference". I need some help on get this working.
Strange thing is that what when i use "run on mono" the error does not
occur. Please note that webservice is on http not on https. 

View this message in context: http://mono.1490590.n4.nabble.com/Problem-with-calling-webservice-tp4659212.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list