0
我正在創建一個實現特定現有WSDL的ASP.NET Web服務。有一些小小的差異可能不是什麼大不了的,但我希望儘可能地接近比賽。我開始認爲這是不可能的。重新排序ASP.NET Web服務中的wsdl:定義
第一個區別是wsdl:定義的順序不同,並且有一個額外的值。
這是我希望它看起來像:
<wsdl:definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:MyNamespace:Gateway"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="urn:MyNamespace:Gateway"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
,這就是我得到:
<wsdl:definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="urn:MyNamespace:Gateway"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="urn:MyNamespace:Gateway"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
注意,他們以不同的順序,和我有額外的soap12命名空間。我如何讓它們以相同的順序並刪除soap12名稱空間?
謝謝你,做到了。 – 2010-02-24 16:38:19