forked from wso2-attic/wsf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_guide_linux.html
More file actions
97 lines (86 loc) · 4.26 KB
/
install_guide_linux.html
File metadata and controls
97 lines (86 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>WSO2 Web Services Framework/C++ - Installation Guide (Linux)</title>
<link href="style.css" rel="stylesheet" type="text/css" media="all">
</head>
<body lang="en-US" dir="ltr">
<h1>WSO2 Web Services Framework/C++ - Installation Guide (Linux)</h1>
<h2><a id="dependencies"></a>1. Software Dependencies</h2>
<h3>1.1. Mandatory</h3>
<ul>
<li>OpenSSL - <a href="http://www.openssl.org/">http://www.openssl.org/</a>
- Required for SSL client transport and WS-Security with Apache
Rampart/C</li>
</ul>
<h3>1.2. Optional</h3>
<ul>
<li>Libxml2 - <a
href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a></li>
<li>libiconv - <a
href="http://www.gnu.org/software/libiconv/">http://www.gnu.org/software/libiconv/</a></li>
<li>zlib - <a href="http://www.zlib.net/">http://www.zlib.net/</a></li>
<li>Apache2 httpd - <a
href="http://httpd.apache.org/">http://httpd.apache.org/</a> - Required
for deploying services with HTTPD</li>
<li>Either SQLite - <a
href="http://www.sqlite.org/">http://www.sqlite.org/</a> or MySQL - <a
href="http://www.mysql.org/">http://www.mysql.org/</a> - Required for
WS-ReliableMessaging with Apache Sandesha2/C</li>
<li>iksemel - <a
href="http://iksemel.jabberstudio.org/">http://iksemel.jabberstudio.org/</a>
- Required for XMPP transport</li>
</ul>
<br />
<h2><a id="requirements"></a>2. Requirements</h2>
To install and run WSF/C++ using the source distribution on Linux, you are required to have pkg-config
on your system. By default, most Linux systems have this tool.
<br /><br />
<h2><a id="source"></a>3. Building and Installing WSO2 WSF/C++ from Source on Linux.</h2>
<ol>
<li>Extract the source tar package to a folder.<br /><br /></li>
<li>Set WSFCPP_HOME environment variable pointing to the location where you want to install WSO2 WSF/C++.
<pre> $ WSFCPP_HOME='/your_desired_path_to_wsf_c++_installation'
$ export WSFCPP_HOME</pre></li>
<li>Then go to the folder where you extracted the source.
<pre> $ cd /your_path_to_wsf_c++_source</pre></li>
<li>Build the source<br />
* This can be done using the following command sequence in the directory where you have extracted the source
<pre> $ ./configure --prefix=<Path to WSF/CPP installation location>
$ make
$ make install
$ make samples</pre></li>
<li>Go to where you installed WSO2 WSF/C++. Start simple axis server<br />
* To start the simple axis server on port 9090 run the following commands
<pre> $ cd ${WSFCPP_HOME}/bin
$ ./axis2_http_server</pre>
To see the possible command line options run <code>./axis2_http_server -h</code>.
If you run into shared library problems, try setting the LD_LIBRARY_PATH
<pre> $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${WSFCPP_HOME}/lib
</pre></li>
<li>Build the codegeneration tool<br/>
Inorder to build the codegeneration tool which is written in java,you will need to have the mavan2 installed.
Get apache maven from <a href="http://maven.apache.org/download.html">apache mavan download site</a> <br />
Use the script build_codegen.sh to build and install the tool to the proper location. </li>
<li>Usually, it will copy to the scripts to the default location which is `pwd'/deploy.
However you can give your preferred WSF/CPP installation location ( Which was provided
in configuring WSF/CPP ) as follows. <pre>sh copy_codegen.sh wso2-wsf-cpp</pre>It will copy the WSDL2CPP.sh and
WSDL2CPP.bat files to $(WSFCPP_HOME)/bin/tools/codegen/wsdl2cpp directory.
</li>
</ol>
<p>
Now you are ready to use WSO2 WSF/C++.<br />
<br />
Notes:
</p>
<ul>
<li>You may require super user privileges to run <code>make install</code> on your system.</li>
<li>You may optionally specify the path in which the installation should be
deployed using <code>./configure --prefix=PATH</code>.</li>
<li>If you don't provide the <code>--prefix</code> configure option, WSO2 WSF/C++ will by
default be installed into, <code>/opt/wso2/wsf_cpp</code></li>
<li>You may run <code>./configure --help</code> for more information on configure options.</li>
</ul>
</body>
</html>