File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Sun J2ee webservice tutorial doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Sun J2ee webservice tutorial doubt" Watch "Sun J2ee webservice tutorial doubt" New topic

Sun J2ee webservice tutorial doubt

Vasim Patel
Ranch Hand

Joined: Apr 29, 2004
Posts: 87

I am trying to understand how the JAX RPC static stub client is built in Sun Webservices tutorial

Here we have HelloIF and HelloImpl classes. Both these classes are in the
package helloservice.

These have been built using

Now the client is in package staticstub.

I wanted to know how does HelloClient compile WITHOUT importing package helloservice in which HelloIF has been declared.

Isn't this against the basic java rules.

Or is there a smart way ANT does.

Can someone please explain or give me a plain javac command to compile the

Peer Reynders

Joined: Aug 19, 2005
Posts: 2906
I think you are confusing server-side vs. client side interfaces.

The server side classes can be found in

The client side classes can be found in

it goes to follow that the server is using

while the client is using

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Vasim Patel
Ranch Hand

Joined: Apr 29, 2004
Posts: 87
Thanks Peer. Yes, I got it now.
the wscompile on client side reads the wsdl file and generates 2 java files(among others) in its package.


I agree. Here's the link:
subject: Sun J2ee webservice tutorial doubt
Similar Threads
how to read RMH
Sun J2ee webservice tutorial doubt
Compilation of a Dynamic Proxy Client
Issue while deploying web service jwstutorial example CLI171
Error while deploying the war file using command "asant deploy"