【Web Services】建立過程之四(完) (轉)
作為對 services的建立過程的文章,在最後一篇,作者列舉了一個例項:
附例項:
<? version="1.0" ?>
<serviceDescription Xmlns:s0="" name="Security" targetNamespace=""
Xmlns="urn:schemas-Xmlp-org:sdl.2000-01-25">
<soap Xmlns="urn:schemas-Xmlsoap-org:soap-sdl-2000-01-25">
<service>
<addresses>
<address uri="x/SampleService.asmx" />
</addresses>
<requestResponse name="GetSecurityInfo" soapAction="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="/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="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="" attributeFormDefault="qualified"
elementFormDefault="qualified" Xmlns="">
<element name="GetSecurityInfo">
<complexType>
<all>
<element name="Code" Xmlns:q1="" 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="" type="q2:string" nullable="true" />
<element name="CompanyName" Xmlns:q3="" type="q3:string" nullable="true" />
<element name="Price" Xmlns:q4="" type="q4:double" />
</all>
</complexType>
<element name="SecurityInfo" type="s0:SecurityInfo" />
</schema>
</serviceDescription>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-990181/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- XML安全之Web ServicesXMLWeb
- Amazon Web Services (目錄)Web
- HanLP封裝為web services服務的過程介紹HanLP封裝Web
- MVC應用程式使用Web Services(asmx)MVCWebASM
- 4.5 建立完CDB之後
- 越權漏洞(四)完結
- Android包管理機制(四)PMS的建立過程Android
- web前端教程之JavaScript的作用域Web前端JavaScript
- Docker教程之四CentOS安裝DockerDockerCentOS
- MySQL教程之常見函式(四)MySql函式
- web應用安全培訓教程之reactWebReact
- 好程式設計師web前端學習路線nodeJs學習過程之認識nodejs程式設計師Web前端NodeJS
- Java培訓教程之物件的建立與使用Java物件
- OpenGL系列教程之一:OpenGL(轉)
- 使用Hibernate-Validator優雅的驗證RESTful Web Services的引數RESTWeb
- git 入門教程之回到過去Git
- Struts2教程之二Action建立方式
- idea建立web專案IdeaWeb
- IDEA建立Java WEB工程IdeaJavaWeb
- astro中建立web componentsASTWeb
- 2.4.1.2 Nonedefault Services in a CDBNone
- 2.4.1.1 Default Services in a CDB
- 2.4 Overview of Services in a CDBView
- 微信小程式入門教程之四:API 使用微信小程式API
- Docker 實戰教程之從入門到提高 (四)Docker
- python如何建立web服務PythonWeb
- nodejs web伺服器建立NodeJSWeb伺服器
- web前端教程《每日一題》(1-99)完結Web前端每日一題
- 學完Web前端後發展方向有哪些呢?Web前端
- 連載四:Oracle升級文章大全(完結篇)Oracle
- zookeeper原始碼 — 四、session建立原始碼Session
- COMPUTER DATABASES AND ABSTRACTING SERVICES 2Database
- 如何使用 Services.AddDistributedMemoryCache
- 建立Dynamic Web Project沒有web.xml問題WebProjectXML
- 好程式設計師web前端教程之Node.Js流程程式設計師Web前端Node.js
- Pandas高階教程之:Dataframe的重排和旋轉
- spring boot 建立web專案(IDEA)Spring BootWebIdea
- Python全棧Web(Ajax概述建立)Python全棧Web
- web workers簡介(三)建立subworkerWeb