This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Some doubts from book Apache Axis2 Web Services by Deepal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Some doubts from book Apache Axis2 Web Services by Deepal" Watch "Some doubts from book Apache Axis2 Web Services by Deepal" New topic
Author

Some doubts from book Apache Axis2 Web Services by Deepal

shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
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

Joined: Jan 05, 2010
Posts: 177
Anybody
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41598
    
  55
PatienceIsAVirtue


Ping & DNS - my free Android networking tools app
Deepal Jayasinghe
Greenhorn

Joined: Oct 30, 2012
Posts: 1
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

Joined: Jan 05, 2010
Posts: 177
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

Joined: Nov 05, 2012
Posts: 1
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Some doubts from book Apache Axis2 Web Services by Deepal