I am new to SOAP and xml. I read a number of tutorials but nothing seems to be clear enough.
I am abit confused, Just how does one send an SOAP request? The way I have tried to do this is by saving my SOAP request (as seen below) as: testRequest.xml.
I then open the file (testRequest.xml) with a browser in order for it to be sent..
Having a sample soapUI WSDL URL is of a great help when getting used to how SOAP / REST services work. You can easily get used to how SOAP / REST requests form and get acquainted with how the web service response looks like and how the SOA/Web Service architecture works. Working WSDL URLs for Testing with soapUI. It generates a SOAP request XML, Endpoint URL and required request headers for a selected operation and also permits you to test its response.
what I get in return is an error message stating:XML Parsing Error: syntax errorLocation: localhost/projects/test.xmlLine Number 1, Column 1:POST /MobileCashPayout.asmx HTTP/1.1^
Am I sending it the wrong way?Please help me out?
SirBTSirBT51233 gold badges1010 silver badges3030 bronze badges
4 Answers
Opening this document in browser wouldn't send a request. You have several options:
- write a little script in any familiar language, script should connect to specified server and send a POST request with a body as mentioned in your message
- use some of existing programs to do that for you
If you're inexperienced I would definitely recommend second option. My personal favourite is SoapUI, see here.
Miljen MikicMiljen Mikic11.4k55 gold badges4444 silver badges5252 bronze badges
This blog post helped me. Python SOAP Request using Requests
JohnMuddJohnMudd10.6k22 gold badges1919 silver badges1919 bronze badges
On linux you can use
curl
to send the soap xml. Here's how to do it:Using the
testRequest.xml
file created you can Here is a link that describes the full process.
KihatsKihats
You cannot send a soap request when a browser as far as I know. I propose you use a tool like Soap UI
to send a request.
SilmarilliumSilmarillium