荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: lvyou (风雨同路卡拉Baby), 信区: DotNET
标  题: 怎样创建.NET Web Service(4)
发信站: 荔园晨风BBS站 (Sat Feb  2 20:12:44 2002), 转信

怎样创建.NET Web Service(4)
作者: crystal编译   www.ASPCool.com 时间:2001-9-27 16:04:43  阅读次数:1661

     附实例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">
  <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>





--
  如果没有黄蓉,我可以想象郭靖最后的结局:他可能跟着江南七怪学一辈子功夫,但
还是武林里的三流角色,他也可能和彭连虎交上朋友,成为江洋大盗或者江湖混混。他甚
至可能仰慕欧阳锋而躲到深山老林苦练武功,最后变得性情乖张,暴戾凶残。
  最糟糕的结局还不是这些。他也可能娶了华筝公主,一面在战场上杀人如麻,一面在
宫殿里挥霍淫乐,成为一个腐败不堪的贵族。
  只是因为他的一念之间,只是因为他认识了一个女孩,他的人生改变了。

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 203.93.19.1]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店