.Net Consuming Web Service: Identical types in two different services

前端 未结 5 1865
谎友^
谎友^ 2020-12-17 03:24

I have to consume 2 different web services. Both contain a definition for a \'user\' object.

When I reference the services using \"Add service reference\" I give e

5条回答
  •  天命终不由人
    2020-12-17 04:13

    the WSDL tool has a parameter.

    /sharetypes
        Turns on type sharing feature. This feature creates one code file with
        a single type definition for identical types shared between different
        services (namespace, name and wire signature must be identical).
        Reference the services with http:// URLs as command-line parameters
        or create a discomap document for local files.
    

提交回复
热议问题