wood burning stoves 2.0*
The moose likes Web Services and the fly likes Begining Web Services Book Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Begining Web Services Book Question" Watch "Begining Web Services Book Question" New topic
Author

Begining Web Services Book Question

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
On page 118, the author creates a "StockQuote.java" file, but then on page 176 the same file gets created that contains interface definitions only.

Thus, when I try to run the resultant code, I get a instantiation error.

Does anyone have a copy of this book and can take a quick look?

Much appreciated.

Mike
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Mike,

I dont have the book anymore, but I have the codes that I ran.

The one in page 118 has a client that seems to have used DII(dynamic) way of invoking the web service.

The one in page 176 uses the stub way of invoking the web service. It ran wsdl2java using wsdl as input, to generate stubs, that are used by the client.

For this reason, I kept those 2 applications and all of their related files, in their own folders.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
No doubt I should have kept things in separate folders too.

So, what you're saying is that you really don't need the StockQuote.java from chapter 3 for the later chapter?

I suppose I'm a bit puzzled then how Chapter 5's WebService finds the StockQuote logic without chapter 3's StockQuote.java.

Can you clarify?

Mike

P.S. Did you see the new book on Web Service certification that's coming out in March?
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
They just happened to have a common file of that name.

In chapter 3, it is the client. In chapter 5, it was generated by the wsdl2java. It is just a coincidence.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
About the cert book, I am also waiting for it.

Just want to share that I found the j2ee tutorial(the chapters related to web services), as very nice.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Originally posted by Mike London:
So, what you're saying is that you really don't need the StockQuote.java from chapter 3 for the later chapter?


You do need it as it contains the web service in addition to being a client. However, the chapter 5 folder provided the compiled .class version of the web service. So you wont need the web service .java file anymore, as the compiled one is provided already.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Mike London:
P.S. Did you see the new book on Web Service certification that's coming out in March?


I hope you are not referring to
Sun Certified Developer for Java Web Services Study Guide (Exam 310-220)
Its release date is now 2006-10-01; October 2006.

See also any good study guide for SCDJWS?.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Amazon still has:

"by Jerome Josephraj, Prasad Kukkamalla
(Paperback - April 30, 2006)"

Hmmm.

Mike
 
 
subject: Begining Web Services Book Question
 
Similar Threads
need help on jsp/jstl specs
k&b errata
Tapestry Resource Bundles
HFSJ Page No.501 - TagFiles
XSL Read element Problem