• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Webservice - WSDL or Java Class

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am convinced with Contract First as opposed to Contract Last. Spring argument is very good one.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Peer..links were really informative !!
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic