Use case : How to create web service proxy using Jdeveloper 11g
Implementation : In my previous blog, I have outlined how to create a web service using Jdeveloper, In this blog I would like to explain about how to create a web service proxy using Jdeveloper. As you all know that web service can be invoked using SOAP protocol and exchanges request / reply messages using XML , There may be a requirement to invoke a webservice in java layer, one alternative to accomplish this requirement is to create a web service proxy, what does this means is , Jdeveloper tool will generate Java library/class files based upon web service WSDL url and these java classes can be accessible anywhere in java layer.
Steps :
In this example, here is my WSDL url, Make sure this web service works fine by opening in any browser.
http://localhost:7101/WebserviceProxy-MathUtilWSProject-context-root/MathUtilWSPort?wsdl
- Create a new project with 'Java & Webservice' technologies as shown below
- Right click on newly created project, Choose New , Choose Webservices under Business tier -> Choose Webservice proxy as shown below
- Choose JAX-WS Style, If the web service is type of Jax-ws
- Paste the WSDL URL for which you want to create a web service proxy as shown below
- Give the proper Package name as well as types as shown in below screen shot
- Follow rest of steps leaving default options , Finally web service proxy will be created.
- Below is the screen shot shows how to test newly created web service proxy
Thank YOu, was looking for exactly these steps :)
ReplyDeleteI saved your post and will be rereading this afterwards
ReplyDeleteKind Regards,
jessicaevie
Bypass Proxy Server