User Tools

Site Tools


kbws_add

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kbws_add [2011/03/27 15:03]
cory
kbws_add [2014/01/18 07:44]
Line 1: Line 1:
  
-====== [KBWS] How to add a new service ====== 
-How to add a new SOAP service to KBWS package using gSOAP toolkit. 
-===== Notes ===== 
-  * This method is available SOAP web-based services that prepare WSDL file. 
-  * In the following examples, we assume KBWS version is 1.0.6. 
- 
-===== Tutorial ===== 
- 
-In this tutorial, we add a new tool named "​new_app"​ to KBWS package. 
- 
-  - Write new ACD file for new service. 
-    * ACD file is put in "​KBWS-1.0.6/​acd/​new_app.acd"​ 
-  - Write document about new service (for tfm utility). 
-    * EMBOSS requires two document files (plain text and HTML) 
-    * Plain text file is put in "​KBWS-1.0.6/​doc/​text/​new_app.txt"​ 
-    * HTML file is put in "​KBWS-1.0.6/​doc/​html/​new_app.html" ​ 
-  - Move to "​KBWS-1.0.6/​include ", and execute following commands. 
-    * [Mac OSX] 
-      - $ ../​gsoap/​bin/​macosx/​wsdl2h -c -o [header file name].h [WSDL file URL] 
-      - $ ../​gsoap/​bin/​macosx/​soapcpp2 -c [header file name].h 
-    * [Linux] 
-      - $ ../​gsoap/​bin/​linux386/​wsdl2h -c -o [header file name].h [WSDL file URL] 
-      - $ ../​gsoap/​bin/​linux386/​soapcpp2 -o [header file name].h 
-    * [Windows] 
-      - $ ../​gsoap/​bin/​win32/​wsdl2h -c -o [header file name].h [WSDL file URL] 
-      - $ ../​gsoap/​bin/​win32/​soapcpp2 -o [header file name].h 
-  - Write source code for new service. 
-    - Source code should be implemented in C programming language 
-    - Source code is put in "​KBWS-1.0.6/​src/​new_app.c"​ 
-  - Edit "​Makefile.am"​ files referring to the existing methods. 
-    * KBWS-1.0.6/​doc/​text/​Makefile.am 
-      * Add "​new_app.txt"​ to "​pkgdata_DATA"​ valiable 
-    * KBWS-1.0.6/​doc/​html/​Makefile.am 
-      * Add "​new_app.html"​ to "​pkgdata_DATA"​ valiable 
-    * KBWS-1.0.6/​src/​Makefile.am 
-      * Add "​new_app"​ to "​bin_PROGRAMS"​ valiable 
-      * Add following code 
-        * "​new_app_SOURCES = new_app.c"​ 
-  - Execute following commands in top directory (KBWS-1.0.6/​). 
-    * aclocal -I m4 
-    * autoconf 
-    * automake -a 
-  - "​configure",​ "​make"​ and "make install"​. 
kbws_add.txt ยท Last modified: 2014/01/18 07:44 (external edit)