To Ze das Couves
To Ze das Couves

Reputation:

Namespace Prefixes in Wsdl (.net)

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!

Upvotes: 1

Views: 2958

Answers (1)

John Saunders
John Saunders

Reputation: 161831

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.

Upvotes: 1

Related Questions