[Mono-aspnet-list] Web Service Call Fails

Marcelo Zabani mzabani at gmail.com
Thu Apr 19 14:06:54 UTC 2012


I used to get timeouts with a specific HttpWebRequest quite some time ago.
The problem is that I was trying to connect to a SSL-secured (https)
website and there was an issue with the Mono.Security.dll's implementation
of a constructor (if I am not mistaken).
All it took me to fix it was removing Mono.Security.dll from the bin/
folder. Give it a try, if you will..

On Wed, Apr 18, 2012 at 8:31 PM, Dave P Nottingham <
DNottingham at hasoftware.net> wrote:

> Probably a certificate error - I was pointed to this *
> http://www.mono-project.com/FAQ:_Security*<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:27Subject:[Mono-aspnet-list] Web Service Call FailsSent
> 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
>
>
>
>
>
>   [image: HASoftware Logo]   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 <DNottingham at HASoftware.net>|
> HASoftware <http://www.hasoftware.ws>
>
> 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.
>
>
>
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>


-- 
Marcelo Zabani
(19) 9341-0221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20120419/1ddbcf7b/attachment.html>


More information about the Mono-aspnet-list mailing list