是否允许多个XML默认命名空间?
发布时间:2020-12-16 23:00:24 所属栏目:百科 来源:网络整理
导读:考虑以下xml soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="mycompany.com.myservice"soap:HeaderTo xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"http://mycompany.com/myservice/ToAction xmlns="htt
考虑以下xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="mycompany.com.myservice"> <soap:Header> <To xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://mycompany.com/myservice</To> <Action xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">mycompany.com/myservice/dosomething</Action> </soap:Header> <soap:Body> <mypayload>hello world</mypayload> </soap:Body> </soap:Envelope> 是使用多个无别名的默认名称空间有效吗? 解决方法
是.
您有多个默认命名空间的情况在the spec中介绍:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |