When I try to create an instance of the service, I get
"The method cannot be reflected."
an exception. Digging deeper in internal exceptions:
The types WebServiceClient.com.compamy.string1 and WebServiceClient.com.company.string use the XML type name, 'string', from the namespace 'http://www.w3.org/2001/XMLSchema'. Use XML attributes to indicate a unique XML name and / or namespace for the type. "
What the hell out of me? This is the automatic code created by VS2010 ... why do I have to bother with it?
Here are two types:
[GeneratedCode( "System.Xml", "4.0.30319.233" )]
[Serializable]
[DebuggerStepThrough]
[DesignerCategory("code")]
[XmlType(TypeName = "string", Namespace = "http://www.w3.org/2001/XMLSchema")]
[XmlRoot("FileName", Namespace = "http://company.com/api3/Content/Download/", IsNullable = true)]
public partial class string1 : SoapHeader
and
[GeneratedCode("System.Xml", "4.0.30319.233" )]
[Serializable]
[DebuggerStepThrougt]
[DesignerCategory("code")]
[XmlTypeAttribute(Namespace = "http://www.w3.org/2001/XMLSchema")]
[XmlRootAttribute("SessionKey", Namespace = "ns", IsNullable = true)]
public partial class @string : SoapHeader
source
share