Saturday, September 14, 2013

Test web services with weblogic

As you develop a web service, you can typically test it directly by using the Test Client. In some cases, you will need to test indirectly by creating a separate web service that acts as a client for testing. 

Console URL: 
http://localhost:7001/wls_utc/

image


1] Deploy your sample web services application to weblogic application server and expand it. There you can see the developed web services, in my case it's "ArithmeticService".
clip_image001

2] Click on that web services and goto the testing tab of the same. Two options will be available there,
  --> WSDL
  --> Test Client
clip_image002

3] Click on the Test client to access the test client console.

http://localhost:7001/wls_utc/
clip_image003

4] That's it, now you can test your web service from the weblogic test client like below.
clip_image004

Note: In weblogic server "Development mode" alone this test web service console will be exist. If you weblogic server is running in "Production mode" it will not exist. To enable to the test client console, we need to deploy the wlstestclient.ear that bundled along with weblogic server.

I hope that this help someone !!

1 comment: