Solved

How JAX-WS works?

Posted on 2010-08-27
2
817 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

937 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

16 Experts available now in Live!

Get 1:1 Help Now