| 网站首页 | 硬件维修 | 应用学院 | 网络组建 | 网站制作 | 菜鸟黑客 | 编程之道 | 数码大全 | 娱乐休闲 | 软件下载 | 在线视频 | 请您留言 | 技术论坛 | 
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
  • javascript实例教程(20)…

  • javascript实例教程(19)…

  • javascript实例教程(19)…

  • javascript实例教程(19)…

  • js控制excel打印完美解决方案

  • 在网页中控制wmplayer播放器

  • 提高代码性能技巧谈—以创建…

  • javascript Web页面内容…

  • javascript模拟ACDSEE简…

  • TreeView节点互斥,autopostb…

  • Q
    您现在的位置: 我是IT人 >> 网站制作 >> ASP.NET >> 文章正文
    怎样创建.NET Web Service(4)         
    怎样创建.NET Web Service(4)
    作者:网络 文章来源:转载 点击数: 更新时间:2005-8-10
    [ 字体:缩小 正常 放大 | 双击自动滚屏 ]
    请选择合适的字体颜色:
        附实例A
      
      <?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">

    [1] [2] 下一页  

    文章录入:小秦    责任编辑:小秦 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 关于我们 | 友情链接 | 版权申明 |