In Glassfish 2, the admin console had a separate node for web services.
Once there you could click on one of the services a get this page
Notice the “Test” button. That will take you to a page that will allow you to test all of your service operations. Handy. But in Glassfish 3, there is no node for web services. I was dismayed when I found this. How will I test my service on the server? No worries. It’s still there. It’s just moved, and it takes a few more clicks.
Click on the Applications node and navigate to the web application that contains the web service you want to test. You’ll find this page detailing the application and it’s modules.
You’ll notice that under the action column you see two rows with links for View Endpoint. When you click on that link, you will find the link for testing your service. It’s the same page as in Glassfish 2. It looks like this.
The result of running your operation is a display of both the SOAP Request and the SOAP Response.
This testing mechanism in Glassfish is invaluable. Take advantage of it.
For an in depth read on web services in Glassfish, check out Java expert Aran Gupta’s article Creating and Invoking a Web service using GlassFish in NetBeans, IntelliJ, and Eclipse
Thanks for reading! If you would like to see what else I’m up to, check out Whiff
[…] Japan) • A Simple JSF Tutorial with PrimeFaces and JSON Object Parsing in Java (Gökhan Ozar) • Testing Web Services in Glassfish 3 (David Burns) • Bootstrapping JSF applications with SystemEvents (Thomas Asel) • Securing Java […]
I’m really loving the theme/design of your website. Do you ever run into any browser compatibility issues? A handful of my blog readers have complained about my website not operating correctly in Explorer but looks great in Opera. Do you have any ideas to help fix this problem?
Is this spam or are you serious? This is a prebaked template from wordpress, just like you’re using. It’s called “Notepad”
Before PHP becoming popular, java and .net tools are popular among web developers. Now java became costly, as compared to the current open source PHP. Even no need of any heavy IDE. Thanks for sharing.