Solved

How JAX-WS works?

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 56
MySQL  on Tomcat 8 70
servlet example 17 53
Running JavaFX on the Raspberry Pi 27 47
For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

830 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