JDeveloper 11gR2: New option Test WebService in WSDL editor – quickest route to implement and test JAX-WS SOAP WebService

Lucas Jellema
0 0
Read Time:1 Minute, 13 Second

It is just a little feature addition – this ‘Test WebService’ button in the WSDL Editor in JDeveloper 11g Release 2 that was released last week. But it can be quite useful all the same. When you inspect a WSDL document in JDeveloper – either one that exists as a file in JDeveloper or one that is generated on the fly from the JAX-WS annotations in a Java Class, you can invoke that WebService from the HTTP Analyzer tool by simply pressing this new button:

Image

This article will demonstrate the very rapid creation of a JAX-WS WebService using a very simple Java Class. Subsequently, this WebService is tested from the WSDL editor that shows the WSDL for this JAX-WS WebService,

The steps used here are very straightforward:

1. Create a (simple) Java Class and add JAX-WS annotations to declare the class a WebService and specify the WebMethods:

Image

2. Show the WSDL for the WebService defined through these annotations (it will be generated on the fly)

Image

3. The WSDL Editor opens with the generated WSDL; press on the icon to test the web service

Image

4. The HTTP Analyzer opens – primed to invoke the web service implemented by the Java Class

Image

5. Now before the WebService can actually be invoked, it must be running somewhere. That is simple to achieve: simply run the Java Class Calculator:

Image

6. So now the WebService can be invoked. The response is received and the test is complete:

Image

About Post Author

Lucas Jellema

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle Developer Champion. Solution architect and developer on diverse areas including SQL, JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA Suite 12c Handbook. Frequent presenter on user groups and community events and conferences such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

Leveraging APEX in XE 11gR2 to rapidly load Excel data into a database table

Whilst preparing for the Thursday Thunder session at the last day of the ODTUG Kaleidoscope 2011 conference in Long Beach, where an all star team of moderators and developers will present a live application development session with key components from Fusion Middleware, I came across a very useful feature of […]
%d bloggers like this: