my dog learned polymorphism*
The moose likes Web Services and the fly likes Netbeans axis2 Java Web Service: Results not shown with variables in URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Netbeans axis2 Java Web Service: Results not shown with variables in URL" Watch "Netbeans axis2 Java Web Service: Results not shown with variables in URL" New topic
Author

Netbeans axis2 Java Web Service: Results not shown with variables in URL

Chew Wei Kian
Greenhorn

Joined: Sep 11, 2011
Posts: 2
Hi

I am having a problem with setting up a web service using netbeans axis2. I followed the tutorial here to host a web service.
http://netbeans.org/kb/69/websvc/gs-axis.html

I was able to see deploy the web service to server and test in browser. However, the input variable was not shown in the result.
URL:
http://localhost:8084/axis2/services/helloWS/hello?name=XYZ

Browser result:
- <ns:helloResponse xmlns:ns="http://helloWS/xsd">
<ns:return>Hello, this is .</ns:return> //<--- the result should be "Hello, this is XYZ."
</ns:helloResponse>

Code Snippet:
public String hello(String name) {

return "Hello, this is " + name + ".";
}

I am not sure what was wrong.

Any help would be appreciated. Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans axis2 Java Web Service: Results not shown with variables in URL
 
Similar Threads
JAX-WS @WebServiceRef injection NullPointerException solution in NetBeans
how to pass the value of the parameter through the URI
netbeans6.1 + Axis2 not displaying my services on Tomcat6 or glassfish
Edit Soap tags response using Axis2 in eclipse
customize xml response in axis2