Axis1 simple tutorial

Source: Internet
Author: User

Axis

1. Direct deployment of instante deployment is to change a written java file. place the jws extension in the axis project root directory, and axis will compile the jws into a class file of the same name at startup and put it under the axis/WEB-INF/export sclasses directory, then you can use .... axis/file name. jws? To access the wsdl representation of the deployment.

Direct deployment requires that the jws file be placed directly without the package path, which is useless.

 

2. customizes the publishing of M deployment, and customizes the publishing content using the wsdd (Web Service Deployment Descriptor) file. This is used in actual applications.

Similar to deploying a project under Tomcat, place the entire directory after the webservice project is compiled under axis/WEB-INF/classes, and write the corresponding wsdd deployment file under axis/WEB-INF.

Wsdd compiled by myself is only used to generate standard configuration files, such:

<Deployment xmlns = "http://xml.apache.org/axis/wsdd/" <br/> xmlns: java = "http://xml.apache.org/axis/wsdd/providers/java"> <br/> <service name = "Counter" provider = "java: RPC "> <br/> <parameter name =" className "value =" gss. test. counter "/> <br/> <parameter name =" allowedMethods "value =" * "/> <br/> </service> <br/> </deployment>

 

Then in CMD mode, switch to axis/WEB-INF to execute the command

Java-Djava. ext. dirs = lib org. apache. axis. client. AdminClient deploy. wsdd

If the following information is displayed:

Processing file deploy. wsdd
<Admin> Done processing </Admin>

The wsdd is edited successfully, and the edited file contains information about the entire axis service for the server-config.wsdd, including the previous deploy. wsdd information.

 

Then, Use http: // url: port/axis/webservices/servicename to access the published service.

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.