从wsdl.exe创建代理类 [英] Create Proxy Class from wsdl.exe
本文介绍了从wsdl.exe创建代理类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从wsdl创建代理类,但没有成功.
我在Visual Studio 2008命令提示符中使用的命令是:
wsdl http://hp-tmoodley:8229/Rose.HelperGateway/CGW/service.svc?wsdl/out:testProxyClass.cs
正在生成testProxyClass.cs,但下面具有以下代码:
Hi , I am trying to create a proxy class from wsdl but have no success.
The command that I''m using in Visual Studio 2008 Command Prompt is :
wsdl http://hp-tmoodley:8229/Rose.HelperGateway/CGW/service.svc?wsdl /out:testProxyClass.cs
The testProxyClass.cs is being generated but it has the following code below :
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.5448
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// CODEGEN: The binding 'netTcpBinding' from namespace 'http://tempuri.org/' was ignored. There is no SoapTransportImporter that understands the transport 'http://schemas.microsoft.com/soap/tcp'.
//
// This source code was auto-generated by wsdl, Version=2.0.50727.3038.
任何对此的帮助将不胜感激.
在此先感谢.
Any help regarding this will be highly appreciated.
Thanks in Advance.
推荐答案
Phew !!!!终于设法解决了.
我使用svcutil和中提琴代替wsdl.exe.
Wsdl有太多标准无法满足.
Phew !!! Finally managed to sort it out.
Instead of wsdl.exe , i used svcutil and viola.
Wsdl has too many criteria to be met.
这篇关于从wsdl.exe创建代理类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文