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