Solved

How JAX-WS works?

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 42
varialbe initialization 11 33
MySQL  on Tomcat 8 47
hibernate jars 4 32
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 …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

832 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