Link to home
Start Free TrialLog in
Avatar of eeriksson

asked on

WSDL.exe problem when using sharetypes on endpoints with different access restrictions

I am trying to generate client proxies for 2 endpoints using wsdl thus:
wsdl /out:Proxies.cs /shareTypes

The important thing I'm trying to achieve is shared types as these 2 endpoints expose some of the same types within the web application.

This works fine with anonymous access allowed to both endpoints. However, when basic authentication is enforced on /subdir I then have to add /username and /password options to the command line to avoid an accessibility error.
I then get the following error:
WSDL: error WSDL1: Item has already been added. Key in dictionary: '[45]:'  Key being added: '[45]:'

 - There are no object/types or any other references to "Negotiate" in either endpoint wsdl so I belive this to be something internal to the workings of wsdl.exe
 - wsdl.exe works for each endpoint individually, including the anonymous endpoint1 even specifying the unnecessary username/password

I think this is probably a bug with wsdl unless anyone tells me otherwise.

Does anyone know of another way to achieve the same effect as sharetypes option but perhaps in 2 batches - 1 for each endpoint so I can get this working?

Avatar of eeriksson

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial