c# - webservices change namespace prefix of ASMX Web Service Return -



c# - webservices change namespace prefix of ASMX Web Service Return -

i creating webservices , using overall namespace :

[webservice(namespace = "www.abcdef.com")]

when inquire wsdl gives me namespace xmlns:abc="www.abcdef.com"

i alter abc prefix else. there way alter it?

untested give shot:

[webservice(namespace = "http://mynamespace/")] public class service1 : system.web.services.webservice { [xmlnamespacedeclarations] public xmlserializernamespaces xmlns { { xmlserializernamespaces xsn = new xmlserializernamespaces(); xsn.add("me", "http://mynamespace/"); homecoming xsn; } set { /* needed xml serialization */ } } }

c# .net web-services namespaces

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -