Axis2 WSDL cannot use the Eclipse Axis1 plugin to generate the client--workaround

Source: Internet
Author: User
Tags log4j wsdl

Use Jetty+axis2 to implement the WebService service side without using the AXIS2 command to generate the server-side code, as long as Services.xml configures the implementation class.

Project for Gradle Engineering profile in Src/main/resources/axis2/web-inf/services.xml:

<?xml version= "1.0" encoding= "UTF-8"? ><servicegroup><service name= "Wifiecservice" >< Description>please Type your service Description here</description><messagereceivers>< Messagereceiver mep= "Http://www.w3.org/2004/08/wsdl/in-out" class= " Org.apache.axis2.rpc.receivers.RPCMessageReceiver "/></messagereceivers><parameter name=" ServiceClass "locked=" false ">com.smsservice.webservices.smsservice</parameter></service></ Servicegroup>

The browser accesses the server-side WSDL address, and the saved WSDL file cannot generate the client code through Eclipse Luna's Axis1 plugin, missing a Xxxporttype class,

Workaround: Use the AXIS1 wsdl2java command to generate the client code:

Script: Wsdl2java.bat

Set Axis_lib=g:\jar-lib\axis1.4set Java_cmd=java-djava.ext.dirs=%axis_lib%set output_path=c:\users\tower\desktop\ Testset package=wcf%java_cmd% Org.apache.axis.wsdl.WSDL2Java Http://x.x.x.x:9002/services/xxxService?wsdl-o%O utput_path%-p%package%

DOS executes this script, generates the server-side code and the client code to the test directory.


Catalog of G:\jar-lib\axis1.4 2007-10-17  11:05            56,290 activation.jar2006-04-22  18:56            33,202 Axis-ant.jar2006-04-22  18:56         1,599,570 axis.jar2006-04-22  18:56            71,442 Commons-discovery-0.2.jar2006-04-22  18:56            38,015 commons-logging-1.0.4.jar2006-04-22  18:56            31,191 jaxrpc.jar2011-06-02  16:30           391,834 log4j-1.2.15.jar2006-04-22  18:56               921 log4j.properties2009-08-02  15:04           436,053 mail.jar2006-04-22  18:56            18,979 saaj.jar2006-04-22  18:56           126,771 Wsdl4j-1.5.1.jar




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.