1. 程式人生 > >Web Service學習總結

Web Service學習總結

Web Service學習總結

這邊文章不算正式完成。最近狀態很亂,身體也出了點小的狀況,也不算是病了,就是不想動,四肢都開始變得僵硬。不知道是不是因為經常熬夜的緣故。 部落格也十分沒有水平和深度

我將如下文章的一些內容 用pencil製作成了一張png圖片。前人都有大智慧,我們望塵莫及,只能堪堪總結下知識,以讓自己加深理解。有的地方理解不一定正確。。。如有。。指正
WebService學習總結(一)——WebService的相關概念: https://www.cnblogs.com/xdp-gacl/p/4048937.html
在這裡插入圖片描述

動手建立一個webservice程式,裡面可能還會有一些釋出過程中的異常處理 >

https://www.cnblogs.com/jiyiblog/p/6597760.html >https://www.cnblogs.com/Brambling/p/6815565.html >有關webservice的相關概念,比如wsdl,soap ,我們可以去w3c官網檢視。 >wsdl: https://www.w3schools.com/xml/xml_wsdl.asp >soap: https://www.w3schools.com/xml/xml_soap.asp >下面是摘錄的一些基礎的資訊 ,加以記錄,加深印象理解。

wsdl文件 如下是主要元素,可以建立一個webservices程式,檢視相應的wsdl文件。

Element Description
types Defines the (XML Schema) data types used by the web service 定義web服務使用的(XML模式)資料型別
message Defines the data elements for each operation 定義每個操作的資料元素
portType Describes the operations that can be performed and the messages involved. 描述可以執行的操作和涉及的訊息
binding Defines the protocol and data format for each port type 定義每個埠型別的協議和資料格式
<definitions>

<types>
  data type definitions........
 
</types>

<message>
  definition of the data being communicated....
 
</message>

<portType>
  set of operations......
</portType>

<binding>
  protocol and data format specification....
  協議和資料格式規範....
</binding>

</definitions>

xml轉移字元

字元 轉義字元
< &lt ;
> &gt ;
" &quot ;
&apos ;
& &amp ;