Apache Axis2/C is a network service engine implemented in C language. Based on the Axis2 architecture, it supports SOAP1.1 and SOAP1.2 protocols and RESTful Web Services.
To deploy the Axis2/C service on Windows 7, follow these steps:
1. Add % AXIS2C_HOME % environment variable
Add % AXIS2C_HOME % \ lib and % AXIS2C_HOME % \ include to the environment variable Path.
2. copy all header files in the axis2c \ include folder to the VC compiling environment.
Copy files in the axis2c \ lib folder to the VC Environment
3. Compile the hello_svc.c file and generate the hello. obj file:
Command: cl.exe/D "WIN32"/D "_ WINDOWS"/D "_ MBCS"/D "AXIS2_DECLARE_EXPORT"/D "AXIS2_SVR_MULTI_THREADED"/w/nologo/I % AXIS2C_HOME % \ include/ c hello_svc.c
Link to generate the hello. dll file:
Command: link.exe/nolog/LIBPATH: % AXIS2C_HOME % \ lib axutil. lib axiom. lib axis2_parser.lib axis2_engine.lib/DLL/OUT: hello. dll hello. obj
4. Create a hello folder in axis2c \ services and copy the hello. dll file generated above.
5. Create a service. xml file in axis2c \ services to describe the service.
6. Compile the hello. c file and generate the hello. obj file.
Generate a hello.exe File
Test: run the axis2_http_server.exe file under axis2c/bin.
Run the hello.exe file generated in Step 6.