• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is more right java2wsdl or wsdl2java  RSS feed

 
Kaspar Minosiantz
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which design is more right for writing WS ?

whrite wsdl + xml schema for document data and then use wsdl2java
or write in java first and than use java2wsdl ?
 
Dave Clark
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
each appraoch - Java -> WSDL or WSDL -> Java is just as valid. It basically depends on your requirements.

If you're starting from scratch writing both a client and server for your web service, then it's often easiest to write the service interface (perhaps with a Stateless Session Bean), then generate the WSDL and client-side stub, then write your client against your generated stub.

However, if you're writing a service and another development team is writing a client, or if you want fine-grained control over the details of the WSDL interface, then it's often best to write the WSDL by hand, then generate client-side stubs and server-side ties/skeletons and go from there. This way you can publish the WSDL, and it'll often be a little 'tighter' or more efficient than generated WSDL.

cheers,

Dave
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!