7. TECHNOLOGY COMPARISON
Table 3 summarizes the third step of our REST vs. WS-* comparison.
Unlike in the conceptual comparison, the number of decisions
required is the same (ten). However, again WS-* offers more
alternatives. For REST, five decisions offer only one alternative.
7.1 Transport Protocol
The Web is defined by its protocol: HTTP, thus when choosing
to build a RESTful Web service, there is no choice but to build
services that communicate using HTTP9
. Thus, given the lack of
options, no decision is necessary when it comes to choosing the
communication protocol.
One of the properties of WS-*, instead, is its transport independence,
which allows SOAP messages to be exchanged using a
variety of transport protocols. The WSDL binding element is used
to select an appropriate transport protocol (HTTP being one possibility)
to bind the operation messages. The corresponding QoS,
security, and transactional policies also have to be defined. Table 3
shows a few examples of available transport protocols. With this
approach, messages in a standardized format can be transported
using the most suitable protocol [46]. On the one hand, both synchronous
(e.g., HTTP) and asynchronous protocols (e.g., JMS) are
available, making SOAP suitable for the implementation of both
request-response and one-way message exchange patterns. On the
other hand, this creates the need for devising mechanisms such as
SOAP headers, delivering certain QoS properties at the message
level. For example, since a SOAP message could be routed both
over secure and non-secure communication channels, it has been
suggested that the message itself should be protected in order to
guarantee certain end-to-end security properties of the communication.
7.2 Payload Format
For WS-* Web services, a single standardized message format
exists: SOAP. On the other hand, RESTful Web services currently
do not use a single format for representing resources. Instead they
rely on the flexibility provided by the content negotiation features
of REST to choose between a variety of MIME document types –
which may also include SOAP itself10. This can complicate and
hinder the interoperability of a RESTful Web service, as – for example
– clients expecting JSON [10] data will not be able to parse
a XML payload. Also, a RESTful Web service capable of serving
resources in multiple representation formats requires more maintenance
effort. However, in our experience the benefit of preferring
JSON over XML can outweigh the extra effort and the lack of interoperability
with a significant overhead reduction.
7.3 Service Identification
RESTful Web services leverage the URI standard as the naming
mechanism to address resources. The advantage of URIs is
that they encapsulate all information required to identify and locate
a resource on a global addressing space without the need for
a centralized registry. Furthermore, URIs can be bookmarked, exchanged
via hyperlinks and, given their readability, even printed on
billboards for advertising [26].
WS-* initially lacked a standard addressing mechanism and also
relied on URIs for identification of messaging end-points and WSDL
service interface descriptions. More recently, WS-Addressing [44]
was introduced to represent addressing information through the
definition of “end-point references”. This standard language aug-
9The waka [13] protocol being still under development
10IETF RFC 3902, application/soap+xml.
811
WWW 2008 / Refereed Track: Web Engineering - Web Service Deployment Beijing, China
ments the information stored in URIs with additional metadata, but
lacks the conciseness and readability properties that ensured the
success of URIs.
7 .
การเปรียบเทียบเทคโนโลยีตารางที่ 3 สรุปขั้นตอนที่สามของส่วนที่เหลือและ WS - * เปรียบเทียบของเรา .
แตกต่างในการเปรียบเทียบแนวคิด , จํานวนของการตัดสินใจ
ต้องเป็นเหมือนกัน ( 10 ) อย่างไรก็ตาม อีก WS - * ข้อเสนอเพิ่มเติม
แทน พัก ห้า ตัดสินใจเสนอทางเลือกเดียว
7.1 การขนส่งโปรโตคอล
เว็บที่กำหนดไว้ โดยโปรโตคอล http ดังนั้นเมื่อเลือก
สร้างบริการเว็บ สมถมี แต่ไม่มีทางเลือกที่จะสร้างบริการสื่อสารการใช้ http9
ดังนั้น ให้ขาด
ตัวเลือก ไม่มีการตัดสินใจเป็นสิ่งที่จำเป็นเมื่อมันมาถึงการเลือกโปรโตคอลการสื่อสาร
.
หนึ่งในคุณสมบัติของ WS - * แทนของการขนส่งความเป็นอิสระ
ซึ่งช่วยให้ข้อความสบู่จะเปลี่ยนใช้
ความหลากหลายของโปรโตคอลการขนส่ง การ wsdl ผูกธาตุใช้
เลือกโปรโตคอลการขนส่งที่เหมาะสม ( HTTP เป็นหนึ่งในความเป็นไปได้ )
ผูกปฏิบัติการข้อความ ที่ถือเป็นนโยบายการรักษาความปลอดภัย
, , และยังต้องกำหนด ตารางที่ 3
แสดงตัวอย่างของโปรโตคอลการขนส่งที่พร้อมใช้งาน ด้วยวิธีนี้
, ข้อความในรูปแบบที่มาตรฐานสามารถส่งโดยใช้โปรโตคอลที่เหมาะสมที่สุด
[ 46 ] ในมือข้างหนึ่ง , ทั้งแบบซิงโครนัส
( เช่น HTTP ) และโปรโตคอลแบบอะซิงโครนัส ( เช่น jms )
ใช้ได้ , การทำสบู่ที่เหมาะสำหรับการใช้งานทั้งการตอบสนองและรูปแบบการแลกเปลี่ยนข้อความ
ขอทางเดียว บน
มืออื่น ๆ , นี้จะสร้างความต้องการจัดกลไกเช่น
หัวสบู่ , การส่งมอบมั่นใจ QoS คุณสมบัติในระดับข้อความ
ตัวอย่างเช่น เมื่อข้อความถูกทั้ง
สบู่การรักษาความปลอดภัยมากกว่าและไม่ใช่ช่องทางการสื่อสารได้
แนะนำว่าข้อความตัวเองควรได้รับการคุ้มครองเพื่อรับประกันความปลอดภัยแน่นอน
; คุณสมบัติของการสื่อสาร รูปแบบของ
7.2 สำหรับ WS - * บริการเว็บเป็นมาตรฐานเดียว แบบข้อความ
อยู่แล้ว : สบู่ บนมืออื่น ๆ , บริการเว็บในปัจจุบัน
เงียบสงบไม่ใช้รูปแบบเดียวสำหรับการนำทรัพยากรแทนพวกเขา
พึ่งพาความยืดหยุ่นโดยการเจรจาต่อรองเนื้อหาคุณลักษณะ
เหลือให้เลือกระหว่างความหลากหลายของประเภท mime ของแฟ้มเอกสาร–
ซึ่งอาจรวมถึงสบู่ itself10 . นี้สามารถที่ซับซ้อนและ
ขัดขวางหรือบริการเว็บสมถเป็น–ตัวอย่างเช่น
–ลูกค้าคาดหวังข้อมูล JSON [ 10 ] จะไม่สามารถแยก
XML payload นอกจากนี้สงบบริการเว็บสามารถให้บริการทรัพยากรในรูปแบบการแสดงหลาย
ต้องเพิ่มเติมรักษาความพยายาม อย่างไรก็ตาม ในประสบการณ์ของเรา ประโยชน์ของพอใจ
JSON กว่า XML สามารถมากกว่าความพยายามที่เพิ่มขึ้นและการขาดการปฏิบัติ
ด้วยค่าใช้จ่ายลดลงอย่างมีนัยสำคัญ .
พักผ่อน 7.3 บริการการยกระดับมาตรฐานของการบริการเว็บเป็นชื่อ
กลไกที่อยู่ ทรัพยากร ประโยชน์ของ URIs คือ
ที่พวกเขาสรุปข้อมูลทั้งหมดที่จำเป็นเพื่อระบุและค้นหา
ทรัพยากรบนโลกที่อยู่ในพื้นที่โดยไม่ต้อง
ส่วนกลางในรีจิสทรี นอกจากนี้ URIs สามารถบุ๊คมาร์ค , แลกเปลี่ยน
ผ่านทางเชื่อมโยงหลายมิติและได้รับการอ่านของพวกเขาแม้พิมพ์บนป้ายโฆษณา
[ 26 ]WS - * เริ่มขาดมาตรฐานการกลไกและยัง
อาศัย URIs สำหรับการส่งข้อความและปลายจุด wsdl
บริการอินเตอร์เฟซคำอธิบาย เมื่อเร็วๆ นี้ คือที่อยู่ [ 44 ]
แนะนำเป็นตัวแทนเรียกข้อมูลผ่าน
นิยามของ " การอ้างอิงความหมาย : " นี้มาตรฐานภาษาส.ค. --
9the Waka [ 13 ] พิธีสารยังเป็นภายใต้การพัฒนา
10ietf 3902 RFC ,การประยุกต์ใช้ XML / สบู่ .
811
www 2008 / กรรมการติดตามเว็บวิศวกรรม - บริการเว็บ ( ปักกิ่ง , จีน
ments ข้อมูลเก็บไว้ใน URIs กับข้อมูลเพิ่มเติม แต่ยังขาดสั้นกระชับอ่าน
และคุณสมบัติที่ทำให้ความสำเร็จของ URIs .
การแปล กรุณารอสักครู่..
