而不添加引用的Web服务? [英] Web Service without adding a reference?

查看:139
本文介绍了而不添加引用的Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个网络服务加入到服务引用的类库。(这是一个API使用示例项目),我需要将这些进入我的项目,但我不能添加服务引用因为安全问题(通过安全问题,我指的是服务只对应一个IP地址,这是我们的客户的服务器的IP地址。)有没有办法来产生一类像使用程序Ildasm.exe为particaluar网站服务?

I have 3 web services added to service references in a class library.(This is a sample project for an API use) I need to move these into my project but i cannot add the service references because of the security issues(By security issues i mean the service only responds to one ip address and that is the ip address of our customer's server.) Is there a way to generate a class like using "Ildasm.exe" for that particaluar web service?

推荐答案

您不需要添加Web服务引用与Web服务code玩:可以手动生成类,如玩:

You don't need to add web service reference to play with web service code: You can manually generate class to play with e.g.:

Wsdl.exe用/out:d:/Proxy.cs /为了的http://本地主机:2178 /Services.asmx

然后就可以手动添加文件到您的项目。

And then you can add this file manually to your project.

这篇关于而不添加引用的Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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