File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 web services, problem with passing parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 web services, problem with passing parameter" Watch "Axis2 web services, problem with passing parameter" New topic
Author

Axis2 web services, problem with passing parameter

Saman Nesa
Greenhorn

Joined: Dec 28, 2012
Posts: 1
Hi

I have a problem with my HelloWorld web services.
I am digging into web service, but stuck at passing parameter to web service, below is what i got:

from browser:
http://localhost:8080/axis2/services/HelloService/sayHello?name="obama"

the return value(source view):
<ns:sayHelloResponse xmlns:ns="http://ws.apache.org/axis2">
<ns:return>Hello null</ns:return>
</ns:sayHelloResponse>

I did every thing like the book but it is not working form me, It can not read the input parameter
this is my code which is same as the book

File listings:
Hello.java

services.xml

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Welcome to CodeRanch!

You might need to tell more details about what steps you have followed here. How you run the code, where it's deployed and how etc... That would make it easier to provide suggestions to solve the problem.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
wood burning stoves
 
subject: Axis2 web services, problem with passing parameter
 
Similar Threads
Netbeans axis2 Java Web Service: Results not shown with variables in URL
targetNamespace & NameSpace issue
Some doubts from book Apache Axis2 Web Services by Deepal
how to pass the value of the parameter through the URI
Edit Soap tags response using Axis2 in eclipse