I am trying to return a custom type from a web service. This is a fairly huge solution, with lots of projects within it, and I am writing a web service to expose one tiny part of it.

Anyway, in the solution there are several namespaces, and within those, some of the class names are the same. ie.

NameSpace.Widget
SomeOtherNameSpace.Widget

When I try to return a 'NameSpace.Widget' from the web service, I get an error saying "Types NameSpace.Widget and SomeOtherNameSpace.Widget both use the XML type name, Widget, from namespace http://TheNameSpaceMyWebServiceIsIn.com. Use XML attributes to specify a unique XML name and/or namespace for the type."

Where do I add these XML attributes so that it can tell them apart?