r7 - 12 Aug 2006 - 15:46:07 - PatipatTumsangthongYou are here: SETEC Wiki >  Knowledge Web  > WebTechnologyCategory > RubyOnRails > WebServiceOnRails > SOAP4R

SOAP4R

การสร้าง Web services อย่างง่ายโดยอ้างอิงจาก http://www2.sys-con.com/ITSG/virtualcd/WebServices/archives/0308/rao/index.html

ต้วอย่างการสร้าง calendar ด้วย SOAP4R และ REXML

http://calagenda.berkeley.edu/calendar-ws/sample-code.html

What is SOAP4R

The SOAP implementation available for Ruby is called SOAP4R. SOAP4R was first released in July 2000, and has had over a dozen updates including fixes based on interoperability testing. Its latest version at the time of writing was version 1.4.4 released in May 2002.

SOAP4R does not yet support the following SOAP 1.1 features:

* SOAP actor attribute * SOAP mustUnderstand attribute * SOAP Fault codes * SOAP XML Schema encoding * SOAP transports other than HTTP

Nor does it support SSL, HTTP Authentication, layered standards like WSDL or UDDI, or the sorts of extended transport mechanisms (such SMTP, POP3, libz compression, and Jabber) found in SOAP::Lite. Some of these mechanisms should come as development progresses.

Development has been quite active, but expecting WSDL or UDDI support immediately may be too much to ask. Updates are frequently improving functionality and interoperability, which is quite encouraging.

การติดตั้ง SOAP4R บน Windows

เป็นการแนะนำการติดตั้ง soap4r เวอร์ชั่น 1.5.5

  1. ดาวโหลด soap4r ได้ที่ http://dev.ctor.org/download/soap4r-1_5_5.tar.gz
  2. upzip ไฟล์ soap4r-1_5_5.tar.gz จะได้โฟลเดอร์ชื่อว่า soap4r-1_5_5
  3. เข้าไปในโฟลเดอร์ soap4r-1_5_5

พิมพ์คำสั่ง

$ ruby install.rb

จะทำการติดตั้งดังรูปด้านล่างนี้

pic01.png

  • รูปที่ 1 พิมพ์คำสั่งเพื่อติดตั้ง pic01.png:

pic02.png

  • รูปที่ 2 แสดงผลการติดตั้ง pic02.png:

โฟลเดอร์เก็บไฟล์ที่สำคัญของ soap4r

  • C:\ruby\lib\ruby\site_ruby\1.8\soap
  • C:\ruby\lib\ruby\1.8\soap
  • C:\ruby\lib\ruby\1.8\soap\rpc
  • C:\ruby\lib\ruby\1.8\soap\mapping
  • C:\ruby\lib\ruby\1.8\soap\encodingstyle
  • C:\ruby\lib\ruby\1.8\soap\header
  • C:\ruby\lib\ruby\site_ruby\1.8\wsdl\xmlSchema
  • C:\ruby\lib\ruby\1.8\wsdl
  • C:\ruby\lib\ruby\1.8\wsdl\xmlSchema
  • C:\ruby\lib\ruby\1.8\wsdl\soap
  • C:\ruby\lib\ruby\site_ruby\1.8\wsdl\soap
  • C:\ruby\lib\ruby\1.8\xsd
  • C:\ruby\lib\ruby\1.8\xsd\codegen
  • C:\ruby\lib\ruby\1.8\xsd\xmlparser
  • C:\ruby\lib\ruby\site_ruby\1.8\xmlscan

สามารถอ่านรายละเอียดเพิ่มเติมได้ที่ http://dev.ctor.org/doc/soap4r/RELEASE_en.html

ทดสอบการใช้ rails soap4r และ wsdl เชื่อมต่อ Amazon Web Services Server

สามารถอ่านรายละเอียดเพิ่มเติมได้ที่ http://www.brendonwilson.com/blog/2006/04/02/ruby-soap4r-wsdl-hell

Professional Open Source Web Services : Other SOAP Implementations

by Wrox Press. http://www.stardeveloper.com/articles/display.html?article=2002110403&page=1
toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
pngpng pic01.png manage 10.6 K 08 Aug 2006 - 08:38 JaruTangpoonpholwiwat  
pngpng pic02.png manage 185.6 K 08 Aug 2006 - 08:39 JaruTangpoonpholwiwat  
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by SETEC Wiki
Copyright ©2012 by National Electronics and Computer Technology Center, NECTEC.
Ideas, requests, problems regarding SETEC Wiki? Send feedback