This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Q. I deployed a simple heloworld pojo (given on P.N.104) given below by dropping it into Tomcat and when I tried to access it through the url (http://localhost:8080/axis2/services/HelloWorld/sayHello?name=Axis2) given in the book, it says "Hello null"!!! But when I changed the 'name' parameter to 'args0' to, then it returned the expected output.
Now my doubt is, why it happened?
Q. There is another example of same class in annotated form given below.
I compiled it through command prompt (no axis2 jar file in classpath but still no error for unrecognized annotations), it compiled silently. And when I dropped it into Tomcat/webapps/axis2/WEB-INF/pojo.... I am getting the below message on Tomcat prompt:
shai ban, your issues is due to Java compilation i.e., you have not turn on debugging when you compile as a result compiled byte code keep method arguments as arg0. arg1 as etc. To solve this, you need to compile with debugging on i.e., with -g option
Joined: Jan 05, 2010
Deepal Jayasinghe wrote:shai ban, your issues is due to Java compilation i.e., you have not turn on debugging when you compile as a result compiled byte code keep method arguments as arg0. arg1 as etc. To solve this, you need to compile with debugging on i.e., with -g option
First of all, Thanks a lot Deepal. I never thought that you will join and reply to my post.
About 1st issue, I compiled with javac -g HelloWorld.java and deployed the class file in Tomcat. And when I verified with generated wsdl, it is generating correct argument name this time!!! But still I am totally confused what this options did. It didn't provide any info also on the prompt. Please explain me or provide the link for reference.
And please reply for 2nd issue. I have no idea about it.