Thursday, April 25, 2013

Axis2 Eclipse How-to

followed tutorial "Create web service in Java using Apache Axis2": http://blog.sencide.com/2011/06/create-web-service-using-apache-axis2.html

Update 2013/04/26

Continued trying to create the client, said port type was empty. Lo and behold, I forgot to save the .java file with added addTwoNumbers method. Now how to update the web service? go through the Add File - Web Service wizard with same options but got "IWAB0164E Cannot overwrite the file "FirstWebService.class" relative to the path "/MyFirstWebService/WebContent/WEB-INF/services/FirstWebService/com/sencide" because automatic file overwriting has not been enabled. Do you want to enable it for this file"

I chose "Yes to All" and proceeded with rest of tutorial.

Finally to run from command line:

C:\Users\awg T\EclipseWorkspaces\Axis2Tut\MyFirstWebService\build\classes>java -cp .;"C:\Users\awg T\Downloads\axis2-1.6.2-bin\axis2-1.6.2\lib\*" com.sencide.TestClient
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisOperation).
log4j:WARN Please initialize the log4j system properly.
12

No comments:

Post a Comment