Solved

How JAX-WS works?

Posted on 2010-08-27
2
884 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Rhino Java Array in Javascript 1 54
Using jdbcTemplate.batchUpdate to improve INSERT performance 6 32
passing enum to a method 4 47
Coding for the first time 9 97
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

738 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