2010-10-01 67 views

回答

0

對不起,這可能是錯誤的答案,並且你不需要與命名空間匹配urns或urls。

[WebService(Namespace = "yourXmlWebServiceNamespace")] 

[WebService(Namespace = yourclass.XmlWebServiceNamespace)] 
class yourclass 
{ 
    public const string XmlWebServiceNamespace = "http://www.abc.com"; 
} 
+0

但有時,web服務頁面視圖是不同的。我怎樣才能做到這一點? – tugberk 2010-10-02 09:29:49

+0

你的意思是wsdl嗎? – Hasu 2010-10-02 09:38:41