• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Begining Web Services Book Question

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amazon still has:

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

Hmmm.

Mike
 
He baked a muffin that stole my car! And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic