Posts

Showing posts from October, 2015

Test Web Service using SOAP UI

Image
In this example I would like explain how to use SOAP UI to test web services. To demo this I have used the Web Service that I have created in my previous blog http://dileepkumarrongali.blogspot.com/2015/10/creating-web-service-using-jdeveloper.html File -->  New SOAP Project. Give project name and WSDL. And click OK.  SOAP project will be created. Now click on Request 1 file. Fill the required parameters in the left hand pane and click Alt + Enter or green play button. Response we get on the right hand side.  Thank you :)

Creating Web Service using JDeveloper.

Image
In the below example I would like to explain how to expose simple java class as web service. Steps to Create WebService Using Jdeveloper (version used 11.1.1.7.0) File -->  New -->  Generic Application  Provide Application Name and click Next Give Project Name and select project technologies Java and Web Services. And click Finish.  Create Java class in the project. Below is Sample Java code I have written.   Right click on java class and select ‘Create Web Service’ Select JAX-WS Annotations platform Leave Default Web Service Name and Port Name. And rest we can take default and click finish. We can see @WebService annotation added to our class.  And web.xml entry will be created and adds our web service class as servlet entry there.  To test this webservice, right click on webservice class and select Test Web service. In Http Analyzer, we can test our web service. We can access this w