[Mono-dev] WebServices with Mono on ARM / Nokia 770
marc.bordessoule
marc.bordessoule at monbureau.com
Fri Jan 6 03:54:57 EST 2006
Hi,
I made more test after my vacations with the same result.
Here is what I made:
I compiled mono 1.1.12 on my linux Ubuntu 5.10 with success.
I generated the ws proxy :
#wsdl http://192.68.xxx.yyy:8081/index.asmx?wsdl -out:WSAppProxy.cs
-n:GtkWebService
And compiled my program (cf my sample at the end of this mail)
#mcs -r:System.Web,System.Web.Services TestWebService.cs WSAppProxy.cs
-out:testws.exe
to be sure to have the 1.0 lib, I also tried :
#mcs
-r:/usr/local/lib/mono/1.0/System.Web,/usr/local/lib/mono/1.0/System.Web.Ser
vices TestWebService.cs WSAppProxy.cs -out:testws.exe -debug+
and on my N770
tar xvzf mono-nokia.tgz (from http://www.go-mono.com/nokia/) to /home/user
and copied files on /home/user/mono-nokia :
testws.exe (my program)
System.Web.dll, System.Web.Services.dll, System.EnterpriseServices.dll (from
/usr/local/lib/mono/1.0)
And added the file: /usr/local/etc/mono/1.0/machine.config
And typed
#cd /home/user/mono-nokia
#. ./README
#./mono --debug testws.exe
And finally I get, again, the following error:
Unhandled Exception: System.NotImplementedException: The requested feature
is not implemented.
in <0x00000> <unknown method>
in <0x00000> <unknown method>
Where is my mistake?
Have you some web services samples to try
Thanks,
Marc.
----------------------------------------------------------------------------
// TestWebService.cs :
using System;
namespace GtkWebService
{
public class TestWebService
{
public TestWebService (string[] args)
{
}
private void testWS ()
{
try
{
int firstNumber = 55;
int secondNumber = 66;
RemoteWebService ws = new RemoteWebService
();
string res = ws.Add (firstNumber,
secondNumber).ToString ();
}
catch (Exception ex)
{
System.Console.WriteLine("Erreur:"+ex);
}
}
public static void Main (string []args)
{
System.Console.WriteLine("Main");
TestWebService app = new TestWebService(args);
app.testWS();
}
}
}
----------------------------------------------------------------------------
-----Message d'origine-----
De : Miguel de Icaza [mailto:miguel at ximian.com]
Envoyé : jeudi 29 décembre 2005 17:21
À : marc.bordessoule
Cc : mono-devel-list at lists.ximian.com
Objet : Re: [Mono-dev] WebServices with Mono on ARM / Nokia 770
Hello,
> And finally I get the following error:
>
>
>
> Unhandled Exception: System.NotImplementedException: The requested
> feature is not implemented.
>
> in <0x00000> <unknown method>
>
> in <0x00000> <unknown method>
>
>
>
> (I also tried to compile mono (1.1.9 or 1.1.10) in the scratchbox
> (0.9.8.5) without success)
Where did you compile the source code?
It seems like you might have built it with the new Visual Studio, which
is using the 2.x profile and that is not fully supported yet.
> So, is it possible today to use mono web services in c# on Nokia770?
Yes, I routinely do it.
Miguel
More information about the Mono-devel-list
mailing list