Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Java2WSDL and SOAP attachments

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. this is probably a dumb question but in order to allow SOAP attachments to be sent to an axis web service, the MIME stuff is added to the wsdl ~after~ the Java2WSDL utlitity creates the wsdl. Is that right? Thank you very much.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured you deleted your other post because you saw this one.

Actually I think its actually safer to cobble your own WSDL together (SOAP attachments with JAX-RPC). Unfortunately that requires some working knowledge of WSDL.

Java2WSDL is OK if you intend to implement Java-to-java RPC over HTTP. If you are truly designing a "SOAP web service" you are better off thinking about the request and response messages required to get the job done and designing the WSDL first. Then use WSDL2Java.
Unfortunately most platforms invested their effort into code-to-definition generators (it appealed to the "I want to implement web services but can't be bothered to learn about WSDL" crowd) rather than graphical WSDL designers (XML can be a bit hard on the eyes).
So WSDL tools still seem to be mainly in the commercial domain (the proliferation of WS-* standards makes it somewhat difficult to keep such an editor up to date, even though only a minority of users would need all of them).

And just because you can create a valid WSDL doesn't mean all platforms (including your own) can deal with it - that's where interoperability comes in.
 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much for the insight Peer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic