自动WSDL生成. vb类文件或ASMX [英] Automatic WSDL genearated . vb class file o ASMX

查看:234
本文介绍了自动WSDL生成. vb类文件或ASMX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用WSDL创建了.vb类文件,该文件是为构建Web服务而提供的.
现在,我应该如何处理这个.vb类文件以从asmx引用?

我的类文件有多个部分类,其中包含各种方法,我不想在我的ASMX文件中显示所有这些通用方法,并不想通过将类文件指向ASMX从类文件本身直接使用它们.

有什么办法吗?请指导我!

I created .vb class file using WSDL what has been provided to build a webservice.
Now, what should I do with this .vb class file to refer from asmx?

My class file have multiple partial classes which contains various methods and I don''t want to show all these genearted methods in my ASMX file and looking for consume them directly from class file itself by pointing class file to ASMX.

Is there any way to do this? Please guide me!!
Thanks!!

推荐答案

这就是我利用ASMX文件中的WSDL.exe通用VB类文件所做的工作. 为VB类文件创建了命名空间,并从ASMX文件继承了VB类文件,并且自动将VB类文件中的所有Web方法暴露给外部,而无需将其保留在ASMX文件中.


谢谢,
Srinivas Kalagara
This is what I did to utilizes WSDL.exe genearted VB class file from ASMX file.
Created a namespace to VB class file and inherited VB class file from ASMX file and automatically all webmethods in VB class file can exposed to outside without maintaining them in ASMX file.


Thanks,
Srinivas Kalagara


这篇关于自动WSDL生成. vb类文件或ASMX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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