• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP is Rubbish

 
Adam Davies
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So considering all SOAP does is to send an XML document over a network connection and receive a XML document as a response, it’s heavy weight, difficult to use and obfuscates so much that it is almost impossible to debug when things go wrong. Which is very often.

So does anyone know the following:

  • How to send a XML document (plain text) over the wire to an HTML SOAP service?


  • It strikes me that it would be easier to have a XML template document that can be filled out with relevant data (replace {NAME} with Adam) and then send this to the SOAP service.

    Rather than going through the mind-numbing and inefficient method of compiling WSDL files and then using Java objects to reconstruct the XML document to send. Boring and rubbish!

    Thanks for anyone's and everyone's help
    Adam
     
    Ulf Dittmer
    Rancher
    Posts: 42968
    73
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    What do you mean by "HTML SOAP" service? What's the connection between HTML and SOAP?

    You don't need to use WSDL in order to use SOAP WS. You're free to create your own SOAP client any way you please; a simple is here: http://www.coderanch.com/how-to/java/WebServicesHowTo#saaj-client

    The code you end up with will be harder to create und maintain, though.
     
    William Brogden
    Author and all-around good cowpoke
    Rancher
    Posts: 13071
    6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It strikes me that it would be easier to have a XML template document that can be filled out with relevant data (replace {NAME} with Adam) and then send this to the SOAP service.


    Sure, I've done that - replace a dozen weird classes created with wsdl2java with a single class that can fill in an XML template. Much faster too since there is no parsing. All you need is a prototype SOAP request message.

    Naturally this doesn't let you do the various WS-* security / encryption / authentication etc etc magic but for a simple service, go for it.

    All you need are the java.net classes in the standard library.

    Bill
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic