Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some doubts from book Apache Axis2 Web Services by Deepal

 
shai ban
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


What is this?

Please help.
 
shai ban
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue
 
Deepal Jayasinghe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shai ban
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Renise lamnur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This week's book giveaway is in the Spring forum. We're giving away four copies of Spring Integration in Action and have Mark Fisher, Jonas Partner. Hairmax Salon Software

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic