aspose 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
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: 3855

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Axis2 web services, problem with passing parameter