[Mono-aspnet-list] Web Service Call Fails

jparker jparker at farcomm.com
Wed Apr 18 16:09:55 UTC 2012


I am able to use this code perfectly in Visual Studio on Windows, but when I
deploy to Mono on Apache it fails. I tried it originally with Version 65 of
the API, then with the current Version 84. Results were the same.

Here is the code (some detail omitted for brevity, e.g. setting reqDetails
properties):

            SetExpressCheckoutRequestDetailsType reqDetails = new
SetExpressCheckoutRequestDetailsType();

            SetExpressCheckoutReq req = new SetExpressCheckoutReq()
            {
                SetExpressCheckoutRequest = new
SetExpressCheckoutRequestType()
                {
                    Version = "84",
                    SetExpressCheckoutRequestDetails = reqDetails
                }
            };

            PayPalAPIAASoapBinding ws = PayPalUtils.BuildPayPalWebservice();

            try
            {
                SetExpressCheckoutResponseType resp =
ws.SetExpressCheckout(req); //this line FAILS


And here is the output from resp.Errors[0].LongMessage;

System.Net.WebException: The request timed out at
System.Net.HttpWebRequest.GetRequestStream () [0x0005f] in
/usr/src/redhat/BUILD/mono-2.10.2/mcs/class/System/System.Net/HttpWebRequest.cs:752
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(System.String method_name, System.Object[] parameters) [0x00069] in
/usr/src/redhat/BUILD/mono-2.10.2/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs:367 

Any help or suggestions would be appreciated.

Thanks,

John

--
View this message in context: http://mono.1490590.n4.nabble.com/Web-Service-Call-Fails-tp4568175p4568175.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list