WSDL 排序顺序相关吗?
我正在重构由现有 Delphi 2006(非 .NET)客户端使用的现有 C# .NET Web 服务。我不想重建/重新部署客户端。我的目标是保持 WSDL 相同,以便代理类不会更改。
我使用了一个工具 (Regionerate) 根据我们当前的标准对方法/属性进行区域和排序。这改变了 WSDL 中的标签排序。
我可以使用 XML diff 工具来比较文件并忽略排序,但我不确定这是否会影响客户端。 Web 方法或(待代理)类属性的顺序相关吗?
I'm refactoring an existing C# .NET Web Service that is consumed by existing Delphi 2006 (non-.NET) clients. I don't want to rebuild/redeploy the clients. My goal is to keep the WSDL identical so that the proxy classes won't change.
I used a tool (Regionerate) to region and sort the methods/properties based on our current standards. This changed the tag ordering in the WSDL.
I can use an XML diff tool to compare the files and ignore ordering, but I'm not sure if this will affect the clients. Is order of web methods or (to-be-proxy) class properties relevant?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 WSDL 中的方法以及类中的属性,顺序应该完全无关。
我能想象这将如何影响客户端的唯一方法是,如果客户端不使用标准库来使用服务,而是通过一些自定义编码的怪异方式来实现 - 即使这样,实现者也必须采取一些措施额外的里程引入对订单的依赖;)
The order should be totally irrelevant, for the methods in the WSDL as well as for the properties in the classes.
The only way I can imagine how this would affect the clients would be if the clients didn't use standard libraries to consume the service, but did it by ways of some custom coded weirdness - and even then the implementer would have had to go some extra miles to introduce a dependency on the order ;)