在Windows 7 Pro上的4.0上使用monodevelop C#消耗Web服务(WSDL) [英] Consuming a Webservice (WSDL) using monodevelop C# on 4.0 on Windows 7 Pro

查看:108
本文介绍了在Windows 7 Pro上的4.0上使用monodevelop C#消耗Web服务(WSDL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为从PHP移出的项目探索monodevelop C#.我目前正在Windows 7上进行开发,并且已经安装了monodevelop 4.0. 使用Web服务的说明描述了使用名为mcs

I'm exploring monodevelop C# for a project I'm moving from away from PHP. I'm currently developing on Windows 7 , and have installed monodevelop 4.0
The instructions for consuming a webservice describes compiling a WSDL uri using a command line tool called mcs

我的monodevelop安装似乎没有安装这些cli工具.我已经检查了安装路径.

My monodevelop install does not seem to have installed these cli tools. I have checked the installation path.

该应用程序将是gtk桌面应用程序,但需要使用网络服务器(WSDL)

The application will be a gtk desktop application, but needs to use web-servers (WSDL)

问题
1)我还需要安装其他东西才能在命令行上获取mcs工具吗?
2)使用mcs工具为WSDL创建存根程序集.dll的唯一方法

Questions
1) Is there something else I need to install to get the mcs tool at command line
2) Is using the mcs tool to create a stub assembly .dll for the WSDL the only method

非常感谢

推荐答案

mcs是Mono附带的C#编译器之一.在Windows上,除非单独安装Mono,否则mcs将不可用. Windows上的MonoDevelop使用Microsoft的.NET Framework,不需要安装Mono.

mcs is one of the C# compilers that is included with Mono. On Windows unless you installed Mono separately then mcs will not be available. MonoDevelop on Windows uses Microsoft's .NET Framework and does not need Mono to be installed.

在MonoDevelop 4.0中,有一种更简单的方法来创建用于调用Web服务的代理/存根类.只需打开您的解决方案,打开解决方案"窗口(视图-解决方案),右键单击您的项目,然后选择添加-添加Web参考.

In MonoDevelop 4.0 there is a simpler way to create a proxy/stub class for calling a web service. Simply open your solution, open the Solution window (View - Solution), right click your project and select Add - Add Web Reference.

这将打开添加Web引用"对话框,您可以在其中输入WSDL文件的URL并通过单击确定"按钮来创建代理类.

This opens up an Add Web Reference dialog where you can enter the url for the WSDL file and create the proxy class by clicking the OK button.

这篇关于在Windows 7 Pro上的4.0上使用monodevelop C#消耗Web服务(WSDL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆