views:

15

answers:

0

I have a web method in a web service (in .Net 2.0) which takes in an XmlSchema object as a parameter.

When I add a reference to this web service in my application, it shows the parameter type as "WebServiceNamespace.XmlSchema" instead of "System.Xml.Schema.XmlSchema". and I cannot make a successful call to the method.

It is a web service for internal use of the company. so, security concerns aside, am I doing something wrong?

here is the webmethod declaration:

<WebMethod(), System.Xml.Serialization.XmlInclude(GetType(System.Xml.Schema.XmlSchema))> _ Public Function MyWebMethod(ByVal OriginalXMLSchema As System.Xml.Schema.XmlSchema, ByVal XMLSelectedRoot As System.Xml.Schema.XmlSchemaElement) As XmlDocument()