Wsdl.exe用/ sharetypes [英] wsdl.exe /sharetypes

查看:150
本文介绍了Wsdl.exe用/ sharetypes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正与多个第三方web服务(来自同一供应商),似乎使用相同的对象结构的服务器端。该业务之一,让我按角色来查询用户列表,另一个可以让我通过查询ID单个用户。为了得到这个工作的最佳可能的方式,用户返回从两个服务需要能够可互换地使用。

I'm working with multiple third party webservices (from the same vendor) that appear to be using the same object structure server side. One of the services allows me to query a list of users by role, and another allows me to query a single user by ID. In order to get this to work the best way possible, the users returned from both services need to be able to be used interchangeably.

输入Wsdl.exe用。我知道,/ sharetypes做什么,我想要它做的,但是,当我生成我的代理,但最终仍被对象的多个版本(即人,PERSON1,...)。

Enter wsdl.exe. I'm aware that /sharetypes does what I want it to do, however, when I generate my proxy, there end up still being multiple versions of the objects (i.e. Person, Person1, ...).

我执行命令如下:

Wsdl.exe用/ sharetypes /语言:VB的http://mbptest2.seniormbp.com:8080/SeniorSystemsWS/UserManagementService.asmx?wsdl http://mbptest2.seniormbp.com:8080/SeniorSystemsWS/DataExportService.asmx?wsdl http://mbptest2.seniormbp.com:8080/SeniorSystemsWS/UserProfileService.asmx?wsdl

推荐答案

有关DataExportService的模式有TNS和定义为 http://www.senior-systems.com/ 。对于UserProfileService架构具有TNS和定义为 http://senior-systems.com/ 的目标命名空间。

The schema for DataExportService has tns and the target namespace defined as http://www.senior-systems.com/. The schema for UserProfileService has tns and the target namespace defined as http://senior-systems.com/.

这些都是不同的,即使它们发生解析到同一个Web服务器的URL中使用时。 XML命名空间以文本比较,而不是根据URL语法。例如, http://senior-systems.com/ http://senior-systems.com 会是两个不同的命名空间(提示:一个是缺少了结尾的斜线)。

Those are different, even if they happened to resolve to the same web server when used as a URL. XML namespaces are compared textually, not according to URL syntax. For example, http://senior-systems.com/ and http://senior-systems.com would be two different namespaces (hint: one is missing the trailing slash).

这篇关于Wsdl.exe用/ sharetypes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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