Professional Documents
Culture Documents
Ow To Call/test A Web Service From A Browser
Ow To Call/test A Web Service From A Browser
Web service FAQ: How can I test a web service from a browser?
Ive been working with web services a lot this past week, specifically
with Apache Axis2, and here are a few notes I've learned about hitting one of
my web services from a browser.
For my purposes Im running the web service using the Axis2 server (as
opposed to running it through Tomcat, Glassfish, or other), so
my UserServiceweb service is available at that URL.
http://localhost:8080/axis2/services/UserService/getNum1
http://localhost:8080/axis2/services/UserService/getNum2
Follow-up
While this tip works just fine when you're using Axis or Axis2, it does not work
if youre using XFire. There are other ways to test XFire web services from
tools like Eclipse, but personally I like the browser approach as a quick test. I
hope you can use this same browser-based technique to test your web services
with whatever server-side tool youre using.