java - Call WebService method created with Netbeans and Glassfish from browser(localhost) -


This may look like a dumb question, but I'm new to web services.

I followed myself and successfully created a calculator web service to that point where I created a local client application that used the web service method (the main method is a Java class that calls the web service method Does).

My question is how do I set parameters using this method through my browser, just get an XML / JSON result?

My guess is that I am missing something and I need to publish some web service in some way.

Any solution, the link is highly appreciated.

You hosted your webservice on the glassfish server now you want to use it as an internet browser You were using it Test Web Server option in Net bean.

This means that you need to create your own client which runs on the web browser.

You have created a webpage in it as two input fields and one button result and whenever you press this button, call your web service and display the result. You can follow any simple tutorial of web client or application and then you can deploy it on glassfish or Apache server.

In addition you can use the soap (a client to consume a web service) to import your YSDL, provide inputs, and get results in the form of soap.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -