Archive for September 8th, 2008

Downloading WSDL using JDeveloper 10g

If you are working on Web services and want to download a WSDL to your local system, here is a nice tool from JDeveloper 10g. If you don’t already have JDeveloper with you, download recent 10g version from here:

http://www.oracle.com/technology/software/products/jdev/htdocs/soft10131.html (Get the J2EE or Studio version). Run the below command:

java -jar wsa.jar -fetchWSDL -wsdl <WSDL_URL> -output <LOCAL_OUTPUT_DIR>

The wsa.jar will be under <JDev_INSTALL_DIR>/webservices/lib folder. This will download the WSDL including all referred XSDs, if any, to your local drive.

So why do you have to do this? First, this makes life easier when you create a client proxy or use the WSDL in orchestrating a business process or defining an Enterprise Service Bus (ESB). All these tools will have the capability to refer to the WSDL URL and corresponding schemas automatically even if they are not present in the local disk, but they make separate HTTP calls to access them each time, which makes the entire process too long. For example, if you try to create a JDev proxy referring to the WSDL present at your server, it can take up to 30 minutes, where as with a downloaded WSDL, it will be over within 5 minutes… :)

Add comment September 8, 2008


Categories

Blogroll

Friends

General

Feeds

 

September 2008
M T W T F S S
« Dec   Nov »
1234567
891011121314
15161718192021
22232425262728
2930  

Recent Posts

Firefox 3