2014-02-24 36 views
0

我正在通過Web閱讀以清楚地瞭解WSDL和組成WSDL的元素。 有沒有關於WSDL元素如何與 definitions, types, portTypes, port, message, operation, binding and services相關的圖示?WSDL元素關係

例如我明白,如果我想描述一個服務說計算器;它可以做幾個操作,比如說增加,減少,除法和乘法。因此我定義了portType(計算器)抽象實體,它標識它可以執行的操作(添加,減去,除法和乘法)。 然後我可以具有描述如何這個接口在不同的具體協議(HTTP,SMTP等)

1實施的裝訂元件>因此,我可以有2個綁定,使用指定相同的「運算部」的portType 一個HTTP和另一個使用SMTP?單個WSDL可以定義多個服務(比如計算器,單位轉換器等)嗎?

2> WSDL元素(定義,類型,端口類型,端口,消息,操作,綁定和服務)之間是否存在關係 的圖示/描述性表示?

3>如果我的portType描述了服務中涉及的操作; 與服務元素有何不同?

這裏是網絡鏈接我試圖從中闡述我的想法。這些非常有用,但我試圖清楚瞭解WSDL組件的相關性。

參考文獻:

http://www.w3.org/TR/wsdl.html 
http://msdn.microsoft.com/en-us/library/ms996486.aspx 
http://khanna111.com/wordPressBlog/2013/11/21/248/ 
http://www.w3schools.com/webservices/ws_wsdl_documents.asp 

回答

1
1> So can I have 2 bindings that specify same "calculator" portTypes one using HTTP and another using SMTP? 

是。

Can a single WSDL define multiple services (say calculator, unit converter etc)? 

是的,你可以。但是這兩種服務都將在不同的URL上發佈,那麼重要的是什麼?

2> Is there a pictorial/descriptive representation of co-relationship between the WSDL elements (definitions, types, portTypes, port, message, operation, binding and services)? 
3> If my portType describes the operations involved in a service; how is it different then the service element? 

我在這篇文章中描述的這些,你可以參考 WSDL Details