Web Service 不添加引用? [英] Web Service without adding a reference?

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

问题描述

我有 3 个 Web 服务添加到类库中的服务引用.(这是一个用于 API 的示例项目)我需要将这些移动到我的项目,但我无法添加服务引用由于安全问题(安全问题我的意思是服务只响应一个 ip 地址,那是我们客户服务器的 ip 地址.)有没有办法为该特定网络生成一个类,例如使用Ildasm.exe"服务?

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服务引用:可以手动生成class来玩,例如:

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/order http://localhost:2178/Services.asmx

然后您可以手动将此文件添加到您的项目中.

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

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

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