WSE3 and C++/CLI

Link. March 11, 2006. Comments [1]. Posted in: .NET | Web Services
C++/CLI and WSE3

WSE3 brings some very welcomed upgrades to WSE, including MTOM and WS-Security 1.1 support to the .NET Framework v2.0. For those of you interested in this, you might want to know that most of WSE3 (at least all the features I've personally tried) works just fine with C++/CLI, though you won't find much samples or documentation on this.

However, the support in WSE3 for this is pretty much non-existant. Be aware that the WSE Settings Wizards/Add-Ins in Visual Studio 2005 do not work for C++/CLI projects (neither service nor client). Also, WseWsdl3.exe doesn't really support C++/CLI either. If you use it to generate a WSE proxy for a regular WebService (with the /type:WebClient and /language:CPP options), it won't fail, but it will only generate a regular SoapHttpClientProtocol-derived proxy class, and won't generate the WebServiceClientProtocol-derived one, like it does for C# and VB.NET. In other words, if you specify /language:CPP, WseWsdl3.exe will simply invoke wsdl.exe underneath.

If you're comfortable writing WSE code directly and creating policy and configuration files by hand, though, you can make full use of the functionality in WSE both for clients and services created with C++/CLI. Normally you'll just use wsdl.exe or the regular Add Web Reference wizard (which does work on C++/CLI projects, btw) and then modify the generated code by hand to add WSE support to it.

This kind of thing, I believe, is one of the significant hurdles that cause C++ developers pain when trying C++/CLI. The Visual C++ team put a huge effort in creating the new language and supporting it in Visual Studio 2005. While it's not perfect, it is certainly orders of magnitude better than the old MC++ syntax. However, C++ developers adopting it can find themselves in a bit of trouble because many other teams in Microsoft working on frameworks and libraries for .NET explicitly decide not to support C++ as a working language (this happens both inside the .NET/DevDiv teams as well as outside). I certainly hope this improves in the future, though I'm not very hopeful on the matter.



Friday, July 14, 2006 9:30:36 AM (SA Pacific Standard Time, UTC-05:00)
Hi,

I'm comfortable with using WSE3 but am having to get involved in the procurement of an appropriate certificate to use in a live system. How would you do this and what do you ask for? Verisign seems to offer a certificate that has client authentication and mail. When I use this the wse3 wizard in visual studio complains because there is no data encryption key. Can you help?
Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1050
This Year: 1
This Month: 1
This Week: 0
Comments: 825

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In