ASP

本类阅读TOP10

·asp常用数据库连接方法和技巧
·无组件生成BMP验证码
·一些常用的辅助代码 (网络收藏)
·JavaScript实现的数据表格:冻结列、调整列宽和客户端排序
·VisualStudio.NET_2003及其 MSDN 下载地址
·ASP模拟MVC模式编程
·图片以二进制流输出到网页
·MD5加密算法 ASP版
·ASP.NET编程中的十大技巧
·改进 ASP 的字符串处理性能

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
【Web Services】创建过程之四(完)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

作为对web services的创建过程的文章,在最后一篇,作者列举了一个实例:

附实例: 
     
    <?Xml version="1.0" ?>
    <serviceDescription Xmlns:s0="http://tempuri.org/" name="SecurityWebService" targetNamespace="http://tempuri.org/"
    Xmlns="urn:schemas-Xmlsoap-org:sdl.2000-01-25">
    <soap Xmlns="urn:schemas-Xmlsoap-org:soap-sdl-2000-01-25">
    <service>
    <addresses>
    <address uri="http://localhost/work/aspx/SampleService.asmx" />
    </addresses>
    <requestResponse name="GetSecurityInfo" soapAction="http://tempuri.org/GetSecurityInfo">
    <request ref="s0:GetSecurityInfo" />
    <response ref="s0:GetSecurityInfoResult" />
    <info>This method call will get the company name and the price for a given security code.</info>
    </requestResponse>
    </service>
    </soap>
    <httppost Xmlns="urn:schemas-Xmlsoap-org:post-sdl-2000-01-25">
    <service>
    <requestResponse name="GetSecurityInfo" href="http://localhost/work/aspx/SampleService.asmx/GetSecurityInfo">
    <request>
    <form>
    <input name="Code" />
    </form>
    </request>
    <response>
    <mimeXml ref="s0:SecurityInfo" />
    </response>
    <info>This method call will get the company name and the price for a given security code.</info>
    </requestResponse>
    </service>
    </httppost>
    <httpget Xmlns="urn:schemas-Xmlsoap-org:get-sdl-2000-01-25">
    <service>
    <requestResponse name="GetSecurityInfo" href="http://localhost/work/aspx/SampleService.asmx/GetSecurityInfo">
    <request>
    <param name="Code" />
    </request>
    <response>
    <mimeXml ref="s0:SecurityInfo" />
    </response>
    <info>This method call will get the company name and the price for a given security code.</info>
    </requestResponse>
    </service>
    </httpget>
    <schema targetNamespace="http://tempuri.org/" attributeFormDefault="qualified"
    elementFormDefault="qualified" Xmlns="http://www.w3.org/1999/XmlSchema">
    <element name="GetSecurityInfo">
    <complexType>
    <all>
    <element name="Code" Xmlns:q1="http://www.w3.org/1999/XmlSchema" type="q1:string" nullable="true" />
    </all>
    </complexType>
    </element>
    <element name="GetSecurityInfoResult">
    <complexType>
    <all>
    <element name="result" type="s0:SecurityInfo" />
    </all>
    </complexType>
    </element>
    <complexType name="SecurityInfo">
    <all>
    <element name="Code" Xmlns:q2="http://www.w3.org/1999/XmlSchema" type="q2:string" nullable="true" />
    <element name="CompanyName" Xmlns:q3="http://www.w3.org/1999/XmlSchema" type="q3:string" nullable="true" />
    <element name="Price" Xmlns:q4="http://www.w3.org/1999/XmlSchema" type="q4:double" />
    </all>
    </complexType>
    <element name="SecurityInfo" type="s0:SecurityInfo" />
    </schema>
    </serviceDescription>




相关文章

相关软件