1) Open JDeveloper, Create New Application and Project as shown below
2) Create a Java Class, Right Click on Project->New->General->JavaClass
7) Click OK, Select J2ee 1.4 (JAX-RPC) Web Service and click OK
9) In Step1, Enter WebService Name and Select the CreditRating Class as Component to Publish and click Next
10) Click Next, In Step 5 Select the Checkbox of getCreditRating Method in the List of Availbale Methods.
Once You Successfully generate the Java Web Service, You need to deploy it and Test the working of the Web Service in SOA_Suite(Oracle Application Server).
Step1: Start Oracle SOA Suite,
Step 2: Follow the below steps for getting connection of your application server in Jdeveloper 10g.
a) Go to Connections Tab, Right Click New Application Server Connection, Enter Connection Name as SOA_Suite,
Step 3: Deploy your Java Web Service to Oracle Application Server to test it.
a) Right Click the webservice.deploy->deployto->SOA_Suite
a) Select your Web Service and Click on Test Web Service .
Request:
Response: