生成WSDL文件的三种方法
来源:互联网 发布:淘宝卖家一年的收入 编辑:程序博客网 时间:2024/05/23 02:01
在.NET中有三种方式生成WSDL:
1.在Web Service的URL后面加上WDSL需求,如下:
http://localhost/webExamples/simpleService.asmx?WSDL
2.使用disco.exe。在命令行中写下如下的命令:
disco http://localhost/webExamples/simpleService.asmx
3.使用System.Web.Services.Description命名空间下提供的类
每个 WSDL 文件的根元素都是 <definitions>,必须在其中提供服务的完整描述。首先,必须在 <definitions> 元素中提供各种名称空间的声明。
<definitions> 元素包含一个或多个 < portType > 元素,每个元素都是一系列 operation。可以将单个portType元素看作是将各种方法组成类的一个逻辑分组。应该将每个Types称为服务,因此整个 WSDL 文件将成为一个服务集合。
在每个服务内可以有几个方法或者 operation,WSDL 通过 <operation> 元素来引用它们。
下面是一个最简单的WSDL例子
<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="MobilePhoneService"
targetNamespace="www.mobilephoneservice.com/MobilePhoneService-interface"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.mobilephoneservice.com/MobilePhoneService"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<portType name="MobilePhoneService_port">
<operation name="getListOfModels ">
.......
.......
</operation>
<operation name="getPrice">
.......
.......
</operation>
</portType>
</definitions>
- 生成WSDL文件的三种方法
- 生成WSDL文件的三种方法
- Axis生成wsdl的三种方法以及注意事项
- wsdl文件生成客户端方法
- 使用axis2将wsdl文件生成本地类的方法
- 天气预报的WSDL文件生成 客户端
- Axis2生成wsdl的一种方法
- wsdl文件生成服务器端
- gSoap生成WSDL文件
- WSDL文件生成
- WSDL文件生成
- WSDL文件生成
- PHP生成静态html文件 的三种方法
- Php 生成静态html文件的三种方法
- PHP生成静态html文件 的三种方法
- PHP生成静态html文件 的三种方法
- wsdl文件生成cs文件
- wsdl文件生成cs文件
- 解决IE6、IE7、Firefox兼容最简单的CSS Hack
- net里js换行 未结束的字符串常量
- Ext开发的行拖动效果
- 运行jar批处理设置
- asp.net 检测是否是有效连接地址
- 生成WSDL文件的三种方法
- 滑动门技术,用DIV+CSS技术实现
- lib和dll文件的区别和联系
- 超级搞笑
- 打败你的十五个坏习惯
- windows 7 的一些实用小技巧技巧,让你的电脑与众不同
- Grails Quartz插件 定时调度任务
- flie php
- VS2005 这个产品的配置数据已损坏。请与技术支持人员联系