Waiting for sorting

Source: Internet
Author: User
Tags wsdl

Axis stands for open-source projects under the Apache extensible interaction systemapache organization for WebService development, Java implementation, and C ++ implementation. Its predecessor, ibmsoap4j, donated Apache, renamed Apache SOAP, and supported soap1.1. axis is already in the third generation. axis has improved Apache SOAP more than using Sax to replace the former Dom. Added support for soap1.2 for WSDL and so on. Use the axiseasyapache website to download axis (new version 1.2.1) start tomcat in the copytomcatwebapps directory of % axis_home % \ webapps \ axis and enter http: // localhost: 8080/axis. As mentioned above, only axis is running. If you want to arrange your own webserviceaxis, two methods are supported: the advantages of using JWS (Java Web Service), as long as the source code is better than hello. java, change to hello. run the "% tomcat_home % \ webapps \ axis" directory in JWS and enter http: // localhost: 8080/axis/hello in the browser. JWS has limited configuration options (for example, hello. all the public and non-static methods in Java are exposed) There are many things that cannot be done; the second method uses WSDD (Web service deploy description) tomcat_home % \ webapps \ axis \ WEB-INF directory to write deploy. WSDD and undeploy. WSDD file through Java Org. apache. axis. client. adminclient deploy. WSDD has fixed the problem of using Org to uninstall WebService. apache. axis. client. adminclient undeploy. enter http: // localhost on the wsdd client: 8080/axis/services/Hello introduced the deployment of WebService two methods below to talk about the client access methods also have two kinds of Java through axis inside the JAX-RPC dynamic call in addition to produce WSDL through the server side the file uses the wsdl2java tool to generate client stub access through the JAX-RPC is relatively simple to provide a soap router urlservice namespaceoperation nameoperation parameter typesoperation return types look at the following example to understand: public soapwrapper () {string location = "http: // localhost: 8080/axis/services/bookservice"; try {service = new service (); Call = (call) service. createcall (); call. settargetendpointaddress (new URL (/location);} catch (throwable t) {handleerror ("soapwrapper (constructor) had an exception. ", T) ;}} public void create (Book) {try {call. removeallparameters (); call. setoperationname ("CREATE"); call. addparameter ("arg1", qN, parametermode. in); call. setreturntype (xmltype. axis_void); call. invoke (new object [] {book}); return;} catch (throwable t) {handleerror ("soapwrapper (create) had an exception. ", T); return;} program call and service specific implementation of Jax-rpccall and service: Org. apache. axis. client. call implements javax. XML. RPC. callorg. apache. axis. client. service implements javax. XML. RPC. service 2 client method use wsdl2java to generate client stub use stub to call wsdl2java to operate on the WSDL file corresponding to the service. How can this problem be solved by Axis automatically? the WSDD axis generates the corresponding WSDL; you can also use java2wsdl to operate Java source files and generate corresponding WSDL files.

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.