Another approach that I found successful when I have only a few SOAP calls that I need to make:
- Use a tool like SOAPUI to generate a sample SOAP message
- Copy / paste the sample message into the new files that you store in your application, with placeholder text for any message fields that you want to specify at run time.
- If you want to send a message, read the message file in the sample file, and then do some simple XML manipulations to fill in the fields you need.
I use this approach for a simple SOAP-based client, instead of using one of the full-blown solutions. I need to use 5 or 6 simple SOAP methods from several dozen defined in my service WSDL file, so this approach worked pretty well for me.
source share