Monotouch WCF (wshttpbinding)?

Mono does not currently support WSHttpBinding, it is a work in progress, and the support is very spotty You can use plain SOAP over HTTPS (the web services stack from . NET 1.0 and . NET 2.0) But since you are just getting started, you might as well use REST services with JSon or XML return values.

Many folks are now using Json as the lingua-franca for this kind of connections, as it has the added advantage that you can use the same bridge to create HTML based apps as the Json output can be fed directly into your javascript on browsers For the server, you can use something like ServiceStack: http://www.servicestack.net For the client, you can either parse the Json manually using System. Json which is a very low-level and barebones stack, or you can use something like Newtonsoft's Json parser that comes with a full deserializer and object mapper.

Mono does not currently support WSHttpBinding, it is a work in progress, and the support is very spotty. You can use plain SOAP over HTTPS (the web services stack from . NET 1.0 and .

NET 2.0). But since you are just getting started, you might as well use REST services with JSon or XML return values. Many folks are now using Json as the lingua-franca for this kind of connections, as it has the added advantage that you can use the same bridge to create HTML based apps as the Json output can be fed directly into your javascript on browsers.

For the server, you can use something like ServiceStack: http://www.servicestack.net For the client, you can either parse the Json manually using System. Json which is a very low-level and barebones stack, or you can use something like Newtonsoft's Json parser that comes with a full deserializer and object mapper.

In the newest build of Monotouch it does work. You need to generate a WCF class using the Silverlight 4.0 SDK which will be on your Windows PC if you have Visual Studio. Here's what I use to generate my TimeSheet class (run in CMD shell in Windows): slsvcutil.

Exe http://localhost/QQQQQ/Timesheet. Svc? Wsdl /namespace:"*,General" /d:z:\desktop /noConfig /ser:DataContractSerializer Then copy this to your Monotouch project and call it like this: BasicHttpBinding binding = new BasicHttpBinding (settings.

WCFBasicHttpSecurityMode ()); var svc = new TimesheetServiceClient (binding, new EndpointAddress (settings. AddressServiceUrl ())); Note that all the service calls are Async only. You need to subscribe to their event call backs like this: svc.

GetTimesheetsCompleted += GetTimeSheetsComplete.

I have question how you set credential while running the service on HTTPS with some authentication. AND when I try your solution I get "the classes in the module cannot be loaded" on app startup. – Scarlaxx Jul 8 at 12:50.

I suggest to create your web services with asp mvc and give as ouptut an XML file that you can parse with monotouch. You can atttack your webService created from the scratch using ASP ang get a stream XML.

I'm trying to access WCF REST services via MonoTouch. I am unable to use a ChannelFactory, as dynamic code generation is not possible in MonoTouch, and because I'm accessing RESTful services, I'm also unable to use svcutil to build the client classes. This leaves me with building the client classes manually.

(For some reason WebHttpBehavior does not implement IEndpointBehavior, so I created my own class that inherits from WebHttpBehavior and also implements IEndpointBehavior).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions