Deploy the Axis2/C service in Windows

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.