This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chew Wei Kian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic