Wsdl.exe / sharetypes

I work with several third-party web services (from the same provider) that seem to use the same server-side object structure. One of the services allows me to request a list of users by role, and the other allows me to request one user by ID. To ensure the best performance, users who return from both services should be able to use them interchangeably.

Type wsdl.exe. I know that / sharetypes does what I want to do, however, when I generate my proxy server, in the end there are still several versions of objects (for example, Person, Person1, ...).

The command I execute is as follows:

wsdl.exe /sharetypes /language: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

+5
source share
2 answers

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

These are different, even if they were allowed to the same web server when used as a URL. XML namespaces are compared by text, not by URL syntax. For example, http://senior-systems.com/they http://senior-systems.comwill be two different namespaces (hint: in one of them there is no trailing slash).

+2
source

MSDN, , , . - , , , .

+1

All Articles