[Mono-dev] WebServices with Mono on ARM / Nokia 770

marc.bordessoule marc.bordessoule at monbureau.com
Wed Dec 28 11:53:25 EST 2005


Hi,

 

C# / mono seems to be a very good solution for programming business
applications on the Nokia 770

I try with success some GTK# samples (compile on pc and use on N770)

 

(I use the mono-nokia.tgz from http://www.mono-project.com/Mono:ARM )

 

Now I need WebServices in c# in my N770

 

I made a small sample from
http://www.mono-project.com/Webservices_and_GtkSharp on pc/linux with
success.

And I tried it on my Nokia 770 (cf my sample at the end of this mail)

 

I added some files it ask for:  System.Web.dll, System.Web.Services.dll,
System.EnterpriseServices.dll and /usr/local/etc/mono/... files
(machine.config)

 

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)

 

 

So, is it possible today to use mono web services in c# on Nokia770?

What should I do?

 

Thanks for your answer,

 

Marc.

 

 

//
----------------------------------------------------------------------------
--

My minimum webservice program: 

.

RemoteWebService ws = new RemoteWebService ();

string res = ws.Add (firstNumber, secondNumber).ToString ();

.

 

And WSAppProxy.cs (from wsdl.exe)

//
----------------------------------------------------------------------------
--

//  <autogenerated>

//      This code was generated by a tool.

//      Mono Runtime Version: 1.1.4322.2032

 

//  </autogenerated>

//
----------------------------------------------------------------------------
--

namespace GtkWebService {

 

    [System.Web.Services.WebServiceBinding(Name="RemoteWebServiceSoap",
Namespace="http://tempuri.org/")]

    [System.Diagnostics.DebuggerStepThroughAttribute()]

    [System.ComponentModel.DesignerCategoryAttribute("code")]

    public class RemoteWebService :
System.Web.Services.Protocols.SoapHttpClientProtocol {

        

        public RemoteWebService() {

            this.Url = "http://localhost:8081/index.asmx";

        }

        

 
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/Add", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,
Use=System.Web.Services.Description.SoapBindingUse.Literal)]

        public int Add(int firstNumber, int secondNumber) {

            object[] results = this.Invoke("Add", new object[] {

                firstNumber,

                secondNumber});

            return ((int)(results[0]));

        }

        

        public System.IAsyncResult BeginAdd(int firstNumber, int
secondNumber, System.AsyncCallback callback, object asyncState) {

            return this.BeginInvoke("Add", new object[] {

                firstNumber,

                secondNumber}, callback, asyncState);

        }

        

        public int EndAdd(System.IAsyncResult asyncResult) {

            object[] results = this.EndInvoke(asyncResult);

            return ((int)(results[0]));

        }

    }

}

//--------------------------------------------------------------------------
----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051228/ad78839d/attachment.html 


More information about the Mono-devel-list mailing list