Axis2 wsdl cannot use the eclipseaxis1 plug-in to generate the client

Source: Internet
Author: User
Use jettyaxis2 to implement the webservice server, and you do not need to use the axis2 command to generate the server code, as long as the services. xml configuration implementation class. Project configuration file for gradle project in srcmainresourcesaxis2WEB-INFservices.xml :? Xmlversion1.0encodingUTF-8? ServiceGroupservicenamewifiecSe

Use jettyaxis2 to implement the webservice server, and you do not need to use the axis2 command to generate the server code, as long as the services. xml configuration implementation class. The project is the gradle project configuration file in src/main/resources/axis2/WEB-INF/services. xml :? Xml version = 1.0 encoding = UTF-8? ServiceGroupservice name = wifiecSe

Use jetty + axis2 to implement the webservice server, and you do not need to use the axis2 command to generate the server code, as long as the services. xml configuration implementation class.

The project configuration file for the gradle project in src/main/resources/axis2/WEB-INF/services. xml:

 
 
  
   
    Please Type your service description here
   
   
    
   
   
    com.smsservice.webservices.SmsService
   
  
 

The browser accesses the server's wsdl address. The saved wsdl file cannot generate client code through the axis1 plug-in provided by eclipse luna. A xxxPortType class is missing,

Solution: Use the wsdl2java command of axis1 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%Output_Path% -p%Package%

Execute this script in dos to generate the server code and client code to the test directory.


G: \ jar-lib \ axis1.4 directory 56,290 activation. jar2006-04-22 33,202 axis-ant.jar2006-04-22 1,599,570 axis. jar2006-04-22 71,442 commons-discovery-0.2.jar2006-04-22 38,015 commons-logging-1.0.4.jar2006-04-22 31,191 jaxrpc. jar2011-06-02 391,834 log4j-1.2.15.jar2006-04-22 921 log4j. properties2009-08-02 436,053 mail. jar2006-04-22 18,979 saaj. jar2006-04-22 126,771 wsdl4j-1.5.1.jar

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.