简体   繁体   English

vs2008的sproxy吗?

[英]sproxy for vs2008?

I'm trying to create WCF proxy in unmanaged C++ (No .NET framework is installed on the client). 我正在尝试在非托管C ++中创建WCF代理(客户端上未安装.NET框架)。

I've found the website "http://icoder.wordpress.com/2007/07/25/consuming-a-wcf-service-with-an-unmanaged-c-client-with-credential-passing/" which teaches how to generate such a proxy. 我发现了一个网站“ http://icoder.wordpress.com/2007/07/25/consumption-a-wcf-service-with-an-unmanaged-c-client-with-credential-passing/”如何生成这样的代理。

The problem is that I've found the sproxy.exe only in VS 2003, and not in 2008. 问题是我只在VS 2003中找到了sproxy.exe,而在2008年找不到了。

When I'm creating proxy with this VS 2003 tool, I can compile it with VS 2003, but when I'm trying to compile the generated file using VS 2008, it gets the error: "fatal error C1083: Cannot open include file: 'atlsoap.h': No such file or directory". 使用此VS 2003工具创建代理时,可以使用VS 2003对其进行编译,但是当我尝试使用VS 2008编译生成的文件时,会收到错误消息:“致命错误C1083:无法打开包含文件: 'atlsoap.h':没有这样的文件或目录”。

What can I do? 我能做什么?

Thanks, 谢谢,

Mattan 玛坦

ATL Server was (re)moved from ATL in Visual Studio 2008 to codeplex , where it has found its resting place. ATL Server已从Visual Studio 2008中的ATL(移至)移至codeplex ,在那里找到了安息的地方。

Can you use Visual Studio 2005? 可以使用Visual Studio 2005吗?

Alternatives? 备择方案?

the other solution is to create a managed proxy with svcutil , and use C++\\CLI to communicate between native C++ and the managed proxy. 另一个解决方案是使用svcutil创建托管代理,并使用C ++ \\ CLI在本机C ++和托管代理之间进行通信。

This solution works with all wcf bindings. 该解决方案适用于所有wcf绑定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM