Solved

How JAX-WS works?

Posted on 2010-08-27
2
797 Views
Last Modified: 2013-11-23
Hi!

I've used the wsimport tool from JAX-WS to create a Java WebService client from a published WebService.

What I understood was:

The tool gets the WSDL file from WebService and generates all the classes that we need to call the WebService.

wsimport creates two classes for each method that we have in WebService - one to request and another to response - and also creates some others classes...

It's a little confusing to me.

Can somebody explain me all this process? I mean, how these classes works and what are their roles in WebService comunication.

Thanks in advance!
0
Comment
Question by:calypsoworld
2 Comments
 
LVL 3

Accepted Solution

by:
alanpetersen earned 250 total points
ID: 33545292
When you use the tool to generate Java code from the WSDL, you are generating some proxy components. Exactly what gets generated depends on the JAX-WS implementation used, but they all basically do the same thing. The proxy components provide you with an easy way to call the web service. Although the proxy is hard-coded to talk to the service, you can override this if you need to.

Some good examples can be found in this tutorial:
http://download.oracle.com/javaee/5/tutorial/doc/bnayn.html

0
 
LVL 2

Assisted Solution

by:karthi_bv
karthi_bv earned 250 total points
ID: 33603350
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pairs challenge 5 45
@SBGen Method 3 25
Unexpected HttpURLConnection connection behavior 2 52
Java Loop 4 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now