Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes SOAP is Rubbish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP is Rubbish" Watch "SOAP is Rubbish" New topic
Author

SOAP is Rubbish

Adam Davies
Greenhorn

Joined: Sep 15, 2011
Posts: 1
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
    Marshal

    Joined: Mar 22, 2005
    Posts: 41106
        
      45
    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.


    Ping & DNS - my free Android networking tools app
    William Brogden
    Author and all-around good cowpoke
    Rancher

    Joined: Mar 22, 2000
    Posts: 12761
        
        5
    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
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: SOAP is Rubbish
     
    Similar Threads
    Conversion of message to SOAP in web service
    SOAP vs. RPC
    axis and soap
    WSDL Style?
    XML on SOAP and HTTP, basic understanding