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



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • 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 "Applies to" section.

MORE INFORMATION

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.

Modification Type:MajorLast Reviewed:7/29/2005
Keywords:kbvs2002sp1sweep kbbug kbpending KB312177