Microsoft KB Archive/312177

= Cannot consume Web services published in Uddi.org from a Managed C++ project in Visual Studio .NET 2002 =

Article ID: 312177

Article Last Modified on 7/29/2005

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-



This article was previously published under Q312177



SYMPTOMS
You are unable to consume Web services that are published in Uddi.org from a Managed C++ project. When you add a Web reference to a Uddi.org-published service in a Managed C++ project, the proxy is not generated.

These problems do not arise when you are consuming Web services that are published in Uddi.org from Microsoft Visual C# .NET or Microsoft Visual Basic .NET applications.



RESOLUTION
To work around this problem, you can use the Web Services Description Language Tool (Wsdl.exe) to manually generate the client proxy class and to generate an assembly. You then add a reference to this assembly. You would also add references to System.dll and System.Web.Services.dll. You can run the following from a command prompt to generate the Service1.cs and Service1.dll files:

wsdl http://www.uddi.org/wsdl/publish_v1.wsdl

This will generate client proxy class source code in C# (a .cs file).

csc /t:library output.cs

This will generate the assembly to which you can add a reference.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to Reproduce Behavior

 * 1) Create a default Managed C++ application.
 * 2) Add a Web reference to http://www.uddi.org/wsdl/publish_v1.wsdl.
 * 3) Click Add reference. Notice that nothing happens. No proxy is generated.

Keywords: kbbug kbpending kbvs2002sp1sweep KB312177

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.