Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice - WSDL or Java Class

 
Nageswar Kakolla
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I am using IBM RAD to generate Webservices. My dilemma is should I start with WSDL definition and generate Binding Classess or go ahead and start with Java Classes and expose them as Webservices by generating WSDL, Stub etc.

It seems either approach is Ok except that I am more comfortable with Java Code than WSDL nuances

Nag
 
ashwin tandel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java code to WSDL is nice approach.
In projects, we are likey to have a jave code which we need to expose as webservice
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ashwin tandel:
Java code to WSDL is nice approach.


"Nice" until you run into some of the drawbacks.

Have you read this yet: Why Contract First?

See also
Starting Out
JAX-RPC to JAX-WS (Client impact)

Ultimately you have to ask yourself - are you designing a "Java" service or a SOAP web service (and implementing it in Java).
 
Nageswar Kakolla
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am convinced with Contract First as opposed to Contract Last. Spring argument is very good one.
 
Binod Suman
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peer,

Thanks a lot.
I also had the same problem that how to start the webservice development work either from java class or from wsdl. But after read your given url (Chapter 2. Why Contract First?), now I am confirm that we should start from wsdl.

Thanks again.

Binod Suman
 
NarendraBabu Bandaru
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I also feel good to write the web services from CONTRACT as first and it is easy to specify the requiremnts directly into the XSD's.

Thanks,
NARENDRA
 
abhishek paul
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Peer..links were really informative !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic