views:

293

answers:

1

Namespace prefixes in my wsdl are automatically generated: s1:, s2:, etc, how can i put a specific prefix for my namespaces?

Can't find it anywhere...

Do i have to override the xml serialization and add them by hand (how do i do that in .net webservices?)

(i mean in .net2.0 asmx, the guys who are going to use this webservice say they need that specific prefix instead of s1: and there is nothing i can do about that..) Thank you very much!

+1  A: 

Sorry I don't have time for a full example, but see XmlNamespaceDeclarationsAttribute. You can include a property in the class you're returning that will define the prefixes to use.

John Saunders