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

Reply via email to