[Mono-aspnet-list] Web Service Call Fails

Dave P Nottingham DNottingham at HASoftware.net
Wed Apr 18 23:31:40 UTC 2012


Probably a certificate error - I was pointed to this 
http://www.mono-project.com/FAQ:_Security  but still can't get the thing 
to work!



From:
jparker <jparker at farcomm.com>
To:
mono-aspnet-list at lists.ximian.com
Date:
04/18/2012 23:27
Subject:
[Mono-aspnet-list] Web Service Call Fails
Sent by:
mono-aspnet-list-bounces at lists.ximian.com



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.
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list





Dave P Nottingham | Business Application Developer HASoftware | HOA Manager  PO Box 34630 | Reno NV 89553 Tel +1 800 279 3074 | Direct +1 775-636-4096 Email  |  HASoftware   Disclaimer: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20120418/9b4b1077/attachment.html>


More information about the Mono-aspnet-list mailing list