Advertisement

03.06.2008 at 03:23AM PST, ID: 23219138
[x]
Attachment Details

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

Asked by eeriksson in .NET Framework 2.0, Programming for ASP.NET, Visual Studio .NET 2005

Tags: C#, wsdl, asp.net 2.0, WSDL: error WSDL1: Item has already been added

I am trying to generate client proxies for 2 endpoints using wsdl thus:
wsdl /out:Proxies.cs /shareTypes https://my.com/longpath/endpoint1.asmx https://my.com/longpath/subdir/endpoint2.asmx

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]:https://my.com/longpa:Negotiate'  Key being added: '[45]:https://my.com/longpa:Negotiate'

ASSERTIONS:
 - 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
/ASSERTIONS

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?

Thanks!Start Free Trial
[+][-]03.07.2008 at 02:20AM PST, ID: 21068737

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, Programming for ASP.NET, Visual Studio .NET 2005
Tags: C#, wsdl, asp.net 2.0, WSDL: error WSDL1: Item has already been added
Sign Up Now!
Solution Provided By: eeriksson
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628