Deploy SOAP based Web Service in Weblogic using WAR File

In my previous blog,A�I have discussed how to createA�web service from java class. To make this web service available over the network, we need to deploy the web service in the web logic server. Here we will learn how to deploy the web service as a WAR file, the standard approach. First we will create deployment profile and then we will deploy it to WAR. Please follow the below steps to achieve this.

  1. Create Deployment Profile:A�A�Right click on the project and select Deploy -> New Deployment profileDeploy_SOAP_service_WAR_1
  2. Select WAR File asA�Profile TypeA�and enter Deployment Profile Name JavaSoapWebappDeploy_SOAP_service_WAR_2
  3. Click OK and WAR Deployment Profile Properties Editor window will open. Select Specify Java EE Web Context Root option and enter context root name MyJavaWSApp in the text field.Deploy_SOAP_service_WAR_3
  4. Click on OK. Again right click on the project and select Deploy -> JavaSoapWebappDeploy_SOAP_service_WAR_4
  5. Select Deploy To WARDeploy_SOAP_service_WAR_5
  6. Click on NextDeploy_SOAP_service_WAR_6
  7. Click on Finish and WAR file has been created. Login to Administration Console (http://localhost:7101/console) and navigate to Deployments. Please note Host and Port can be different.Deploy_SOAP_service_WAR_7
  8. Click on InstallDeploy_SOAP_service_WAR_8 Deploy_SOAP_service_WAR_9
  9. Click on NextDeploy_SOAP_service_WAR_10
  10. Upload the war file (JavaSoapWebapp.war) in the Deployment ArchiveDeploy_SOAP_service_WAR_11
  11. Click on Next and select the uploaded war file (JavaSoapWebapp.war)Deploy_SOAP_service_WAR_12
  12. Choose ‘Install this deployment as an application’A�asA�targeting styleDeploy_SOAP_service_WAR_13
  13. Enter the name of this deployment and select the other option as shown in the below screenshotDeploy_SOAP_service_WAR_14
  14. Click on Next and select the option Yes take me to the deploymenta��s configuration screenDeploy_SOAP_service_WAR_15
  15. Again navigate to Deployment and select the web service within the JavaSoapWebappDeploy_SOAP_service_WAR_16 Deploy_SOAP_service_WAR_17
  16. Navigate to Testing tab and user will get the WSDL of this web serviceDeploy_SOAP_service_WAR_18
  17. Test the web service in the SOAP-UI. Copy the address of the WSDL and create a SOAP project in the SOAP-UIDeploy_SOAP_service_WAR_19
  18. Click on Request1 and enter arg0 (input parameter)Deploy_SOAP_service_WAR_20
  19. Click on green run icon Deploy_SOAP_service_WAR_21in the request part and the response will come as expected.Deploy_SOAP_service_WAR_22

Leave a Reply

Your email address will not be published. Required fields are marked *

Show my latest post here