xml - how do you send a SOAP request? -


I'm new in SOAP and xml. I've read many tutorials but nothing is clear.

How do I send a SOAP request, confused? The way I tried to do this is to save my SOAP request (as seen below): testRequest.xml.

  POST / Mobile Cash Payment. Command HTTP 1.1 Host: 192.168.1.80 Content-Type: Application / Soap + xml; Charset = utf-8 Content-Length: Length & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Soap 12: Envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: Soap = "http : //www.w3.org/2003/05/soap-envelope "& gt; & Lt; Soap12: Body & gt; & Lt; Payout xmlns = "http://www.mycel.com/" & gt; & Lt; Username & gt; String & lt; / User Name & gt; & Lt; Password & gt; String & lt; / Password & gt; & Lt; ReferenceID & gt; String & lt; / ReferenceID & gt; & Lt; SourceMsisdn & gt; String & lt; / SourceMsisdn & gt; & Lt; DestMsisdn & gt; String & lt; / DestMsisdn & gt; & Lt; Amount & gt; Decimal & lt; / Zodiac & gt; & Lt; MobilePin & gt; String & lt; / MobilePin & gt; & Lt; CashInformation & gt; String & lt; / CashInformation & gt; & Lt; MERCHANTNAME & gt; String & lt; / MERCHANTNAME & gt; & Lt; / Payments & gt; & Lt; / Soap12: Body & gt; & Lt; / Soap12: envelope & gt;   

I then open to open the file (testRequest.xml) with a browser.

What I get in return is telling an error message : XML parsing error: syntax error location: localhost / project / test. XML Line Number 1, Column 1: Post / Mobile CashPout.Amx HTTP / 1.1 ^

Am I sending it incorrectly? Please help me

Requesting this document to be opened in the browser will not send the request.

  • You have several options:
    • Write a short script in any familiar language, the script must be connected to the specified server and a post request as described in your message. Send
    • If you are inexperienced then I will definitely suggest another option. My personal favorite is Sauzi, see.

  • Comments

    Popular posts from this blog

    Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

    java - How not to audit a join table and related entities using Hibernate Envers? -

    mongodb - CakePHP paginator ignoring order, but only for certain values -