Hey Dean, Apart from the technical limitations, coupling your web services with your RDBMS is generally considered bad practice. (Although I'd also argue that due to its inefficiency, using SOAP in your resource constrained MonoTouch app should also be avoided).
Why don't you just go the normal route and wrap your DB logic inside a standard .asmx web service? though my preference would be to avoid SOAP entirely and just use one of the many REST service frameworks available in .NET. If performance ever becomes a problem you can also try using my http://servicestack.net web service framework, where the JSON and JSV endpoints are multiple times more efficient than SOAP web services. D.B Sent from my iPad On 22 Aug 2011, at 03:32, Dean Harry <[email protected]> wrote: > Ok so I found my problem is a bug > (https://bugzilla.novell.com/show_bug.cgi?id=670956) > > > > So I changed the SqlXml class of the Reference.cs file to read, as the > poster mentioned at the bottom of the bug report: > > > > public partial class SqlXml { > [System.Xml.Serialization.XmlAnyElement(Namespace="Any")] > [System.Xml.Serialization.XmlAnyElement(Name="Any")] > [System.Xml.Serialization.XmlTextAttribute()] > public System.Xml.XmlNode Any; > } > > But that still doesn’t work… has anyone been able to get this to work? I’m > getting desperate… > > > > Cheers, > > Dean > > > > > > > > From: [email protected] > [mailto:[email protected]] On Behalf Of Dean Harry > Sent: Sunday, 21 August 2011 1:13 PM > To: [email protected] > Subject: [MonoTouch] Web Services > > > > Hi All, > > > > I am having a web service problem I can’t figure out… > > > > I have a web service on my MSSQL server with a web method on it… > > > > The following works fine in VS.NET but doesn’t work in Mono, now I am using > 2.8a but I wouldn’t have thought that anything would have changed in the web > services side… > > > > The code is: > > > > GetMeets service = new GetMeets(); > > Service.Credentials = new NetworkCredentials(“username”,”password”); > > > > It fails on the first line with: > > > > “There was an error reflecting type ‘…..SqlXml’. Looking at the > InnerException is shows “There was an error reflecting field ‘Any’…. The > elemeny Any has been attributed with an XmlAnyElementAttribute and a > namespace, but no name. > > > > Has anyone come across this before? > > > > Cheers, > > Dean > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
