Wsdl Namespace Prefixes (.net)

The namespace prefix in my wsdl is automatically generated: s1 :, s2 :, etc., how can I put a specific prefix for my namespaces?

Unable to find it anywhere ...

Do I need to override xml serialization and add them manually (how to do this in .NET services?)?

(I mean in .net2.0 asmx, the guys who are going to use this web service say that they need this particular prefix instead of s1: and I can do nothing about it ..) Thank you so much!

+1
wsdl web-services xml-namespaces asmx
source share
1 answer

Sorry, I don’t have time for a full example, but see XmlNamespaceDeclarationsAttribute . You can include a property in the return class, which will determine the prefixes to use.

+1
source share

All Articles