Table of Contents
[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.8.
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.8/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.8/doc/text/new_app.txt"
- HTML file is put in "KBWS-1.0.8/doc/html/new_app.html"
- Move to "KBWS-1.0.8/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.8/src/new_app.c"
- Edit "Makefile.am" files referring to the existing methods.
- KBWS-1.0.8/doc/text/Makefile.am
- Add "new_app.txt" to "pkgdata_DATA" valiable
- KBWS-1.0.8/doc/html/Makefile.am
- Add "new_app.html" to "pkgdata_DATA" valiable
- KBWS-1.0.8/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.8/).
- aclocal -I m4
- autoconf
- automake -a
- "configure", "make" and "make install".