wsdl文档段分析
时间:2011-01-06
来源:互联网
<s:element name="GetWeatherInformation">
<s:complexType />
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />
</s:sequence>
</s:complexType>
想问一下element标签是什么意思,comlextype到底修饰的是那个变量,为什么这三段格式有所不同,谢谢了,本人初学,希望能详解,我会很快结贴的
<s:complexType />
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />
</s:sequence>
</s:complexType>
想问一下element标签是什么意思,comlextype到底修饰的是那个变量,为什么这三段格式有所不同,谢谢了,本人初学,希望能详解,我会很快结贴的
作者: zhangyutingzyt1989 发布时间: 2011-01-06
element是“元素”,变量是元素,应答关系也是元素,就是你下面一组标签中要描述的事务。
从你的这段wsdl中猜测, GetWeatherInformation是请求接口,GetWeatherInformationResponse是应答接口,这就是2个elements,wsdl分别去描述他们。
<s:element name="GetWeatherInformation">
<s:complexType />//复杂类型元素描述,该接口没有,即“/”结束,xml语法。
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>//如果存在复杂类型,在下面分别描述
<s:sequence>//这个是复杂类型的接口参数列表描述,即函数的参数。
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />//minOccurs表示该参数最少出现次数,maxOccurs表示最多次数,合起来即表示该参数允许为空,并最多只能出现一次,参数名是GetWeatherInformationResult,类型是自定义类型ArrayOfWeatherDescription,并紧接着描述类型。
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />//这个类型范围是空到无穷,即可能是个列表结构,名字是WeatherDescription,类型依然是自定义类型WeatherDescription,wsdl应该在下面继续有该类型的定义描述。
</s:sequence>
</s:complexType>
从你的这段wsdl中猜测, GetWeatherInformation是请求接口,GetWeatherInformationResponse是应答接口,这就是2个elements,wsdl分别去描述他们。
<s:element name="GetWeatherInformation">
<s:complexType />//复杂类型元素描述,该接口没有,即“/”结束,xml语法。
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>//如果存在复杂类型,在下面分别描述
<s:sequence>//这个是复杂类型的接口参数列表描述,即函数的参数。
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />//minOccurs表示该参数最少出现次数,maxOccurs表示最多次数,合起来即表示该参数允许为空,并最多只能出现一次,参数名是GetWeatherInformationResult,类型是自定义类型ArrayOfWeatherDescription,并紧接着描述类型。
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />//这个类型范围是空到无穷,即可能是个列表结构,名字是WeatherDescription,类型依然是自定义类型WeatherDescription,wsdl应该在下面继续有该类型的定义描述。
</s:sequence>
</s:complexType>
作者: woodyk 发布时间: 2011-01-07
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28