怎样创建.NET Web Service(4)

80后皮具小屋

80后皮具小屋

2016-01-29 19:33

怎样创建.NET Web Service(4),怎样创建.NET Web Service(4)
       附实例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>
  
  

 
展开更多 50%)
分享

猜你喜欢

怎样创建.NET Web Service(4)

ASP
怎样创建.NET Web Service(4)

怎样创建.NET Web Service

ASP
怎样创建.NET Web Service

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

怎样创建.NET Web Service(2)

ASP
怎样创建.NET Web Service(2)

怎样创建.NET Web Service(3)

ASP
怎样创建.NET Web Service(3)

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

Java与.NET间进行Web Service交互的选择

编程语言 网络编程
Java与.NET间进行Web Service交互的选择

Web Service随笔1

电脑网络
Web Service随笔1

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

在SQL Server中保存和输出图片

在SQL Server中保存和输出图片

Linux 指令篇:使用者资讯与管理--who

Linux 指令篇:使用者资讯与管理--who
下拉加载更多内容 ↓