在WSDL名称空间prefixes(.NET) [英] Namespace Prefixes in Wsdl (.net)

查看:207
本文介绍了在WSDL名称空间prefixes(.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命名空间prefixes在我的WSDL:S1:,S2:等,我怎么可以把一个特定的preFIX我的命名空间?

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...

我一定要重写XML序列化和手工添加它们(我怎么做,在.NET Web服务?)

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

(我的意思是在.net2.0 ASMX,谁是要使用此WebService的人说,他们需要一个特定的preFIX代替S1:并没有什么我可以做的..) 非常感谢你!

(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!

推荐答案

对不起,我没有时间为一个完整的例子,但看到<一href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlnamespacedeclarationsattribute.aspx"相对=nofollow> XmlNamespaceDeclarationsAttribute 。您可以包括在类的属性你回到它定义了prefixes使用。

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.

这篇关于在WSDL名称空间prefixes(.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆