This document guides you on how to install the WSO2 Web Services Framework/Ruby extension, and run the server and client samples on Linux and Microsoft Windows operating systems.
Please send your feedback to the user mailing list: wsf-ruby-user@wso2.org. Kindly see Home page for subscription.
NOTE : run "ruby find_rbconfig.rb" in a console to find where this 'rbconfig.rb' file is.
#---------------------------------------------------------------------------------
CONFIG["WSFC_HOME"] = "your/wsfc/home/dir"
CONFIG["WSF_LOG_DIR"] = "where/you/wish/log/file/should/be"
CONFIG["WSF_LOG_LEVEL"] = "3"
#---------------------------------------------------------------------------------
NOTE: Above WSF_LOG_LEVEL entry can have one of the following values-
"0" - CRITICAL
"1" - ERROR
"2" - WARNING
"3" - INFO
"4" - DEBUG
"5" - TRACE
You need to download following dependency libraries:
In addition you need to have visual studio installed on your system.
[1] http://www.zlatkovic.com/pub/libxml/
[2] http://www.slproweb.com/products/Win32OpenSSL.html
[3] http://dev.mysql.com/downloads/
[4] http://www.ruby-lang.org/en/downloads/
NOTE: WSO2-WSF-Ruby-1.0.0 Win32 Binary Will be compiled using following version of dependency libraries.
Now you should have the wso2-wsf-ruby binary pack with following structure.
wso2-wsf-ruby-bin-1.0.0-win32
|
+-- wsf_c
|
+-- doc
|
+-- samples
|
+-- lib
NOTE : run "ruby find_rbconfig.rb" in a console to find where this 'rbconfig.rb' file is.
(use '/' or '\\' to to seperate directories. |
e.g. "E:/install/wsfc" or "E:\\install\\wsfc")
#---------------------------------------------------------------------------------
CONFIG["WSFC_HOME"] = "\\wsf_c"
CONFIG["WSF_LOG_DIR"] = "where\\you\\wish\\log\\file\\should\\be"
CONFIG["WSF_LOG_LEVEL"] = "3"
#---------------------------------------------------------------------------------
NOTE: Above WSF_LOG_LEVEL entry can have one of the following values-
"0" - CRITICAL
"1" - ERROR
"2" - WARNING
"3" - INFO
"4" - DEBUG
"5" - TRACE
#if _MSC_VER != 1200
#error MSC version unmatch
#endif
NOTE : run "ruby find_config_h.rb" in a console to find where this file is.
Add the following entries to your rbconfig.rb file which is in your Ruby installation location.
NOTE : run "ruby find_rbconfig.rb" in a console to find where this 'rbconfig.rb' file is.
(use '/' or '\\' to to seperate directories. |
e.g. "E:/install/wsfc" or "E:\\install\\wsfc")
#---------------------------------------------------------------------------------
CONFIG["WSFC_HOME"] = "\\wsf_c"
CONFIG["WSF_LOG_DIR"] = "where\\you\\wish\\log\\files\\should\\be"
CONFIG["WSF_LOG_LEVEL"] = "3"
#---------------------------------------------------------------------------------
NOTE: Above WSF_LOG_LEVEL entry can have one of the following values-
"0" - CRITICAL
"1" - ERROR
"2" - WARNING
"3" - INFO
"4" - DEBUG
"5" - TRACE
cd samples/provider
ruby deploy_samples.rb your_rails_application
cd your_rails_application
run the ruby script/server
NOTE: If you are using rails 2.0.0 or above you may need to configure the database information in your rails application. You can find a guide on how to configure the database from the following link.
http://wiki.rubyonrails.com/rails/pages/TutorialStepOne
cd wsfc_ruby_source_installation/samples/consumer