[Mono-devel-list] Problems with Mono SOAP client
Lluis Sanchez
lluis at ximian.com
Thu Mar 4 09:52:52 EST 2004
On dt, 2004-03-02 at 14:51, Sandy Dunlop wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi. I'm Sandy, and this is my first post to the list after being subscribed
> for onlya couple of days.
>
> I spent most of one night last weekend investigating a problem where a very
> simple SOAP client program written in C# hangs after the last SOAP call. The
> very same program works fine under Microsoft's .NET framework (even if it was
> compiled under Mono).
This web server is wrong because it closes the connection socket in a
way that is not valid for HTTP 1.1. Actually, I get an exception when
running the sample in MS.NET.
>
> I'm wondering if anyone else has seen this problem, and if anyone can suggest
> what might be wrong. The SOAP server I'm connecting to is a small C program,
> which works fine with other major SOAP client libraries (Apache AXIS,
> SOAP::Lite, Microsoft, PHP/PEAR)
>
> Here is the source for the client, server and WSDL that was used:
> http://www.sorn.net/misc/monobug/BugtestClient.cs
> http://www.sorn.net/misc/monobug/server.c
> http://www.sorn.net/misc/monobug/BUG.wsdl
> http://www.sorn.net/misc/monobug/BUG.cs (autogenerated from WSDL)
>
> namespace BugtestClient
> {
> public class Class1
> {
> [STAThread]
> static void Main(string[] args)
> {
> int pid, session;
> BUG proxy = new BUG();
> proxy.Url="http://localhost:1111/soap";
> pid = proxy.bugtest_getpid();
> Console.WriteLine(pid);
> pid = proxy.bugtest_getpid();
> Console.WriteLine(pid);
> pid = proxy.bugtest_getpid();
> Console.WriteLine(pid);
> }
> }
> }
>
> The program was compiled using the following commands:
> mono /usr/local/bin/wsdl.exe bugtest.wsdl
> mcs /r:System.Web.Services /t:library BUG.cs
> mcs BugtestClient.cs /r:BUG.dll
>
> If it matters at all, I'm using Mono Runtime 0.30 on Redhat 9 with a 2.6
> kernel. I've also tried it with Mono Runtime 0.30.2 on Fedora FC1.
>
> - --
> sandy
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFAROXFXOlE1Rb/HvwRAnTWAKCO7RZGeuykpumdT2aq4VU+RxWhhQCeOpzW
> cEMJ7YKNC+hz8ZmzYj4Q8dw=
> =KvUn
> -----END PGP SIGNATURE-----
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list