rdimayuga
13 years agoNew Contributor
Invalid XML format
HI there. Just wondering if anyone knows why am getting an invalid xml format from the response.
<?xml version="1.0" encoding="UTF-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap12:Body>
<TransactionProcess xmlns="http://www.beanstream.com/">
<transaction>
<merchant_id>171710000</merchant_id>
<trnType>P</trnType>
<trnOrderNumber>9343</trnOrderNumber>
<trnAmount>0.35</trnAmount>
<trnCardOwner>Sam Shopper</trnCardOwner>
<trnCardNumber>5060000010001234</trnCardNumber>
<trnExpMonth>05</trnExpMonth>
<trnExpYear>15</trnExpYear>
<ordEmailAddress>randolp2121@gmail.com</ordEmailAddress>
<ordName>Sam Shopper</ordName>
<ordPhoneNumber>999-999-9999</ordPhoneNumber>
<ordAddress1>1407 Graymalkin Lane</ordAddress1>
<ordAddress2 />
<ordCity>Toronto</ordCity>
<ordProvince>ON</ordProvince>
<ordPostalCode>a1a1a1</ordPostalCode>
<ordCountry>CA</ordCountry>
</transaction>
</TransactionProcess>
</soap12:Body>
</soap12:Envelope>
Response:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<TransactionProcessResponse xmlns="http://www.beanstream.com/">
<TransactionProcessResult><![CDATA[<response><trnId></trnId><trnApproved>0</trnApproved><messageId>0</messageId><messageText>Invalid XML format.</messageText></response>]]></TransactionProcessResult>
</TransactionProcessResponse>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap12:Body>
<TransactionProcess xmlns="http://www.beanstream.com/">
<transaction>
<merchant_id>171710000</merchant_id>
<trnType>P</trnType>
<trnOrderNumber>9343</trnOrderNumber>
<trnAmount>0.35</trnAmount>
<trnCardOwner>Sam Shopper</trnCardOwner>
<trnCardNumber>5060000010001234</trnCardNumber>
<trnExpMonth>05</trnExpMonth>
<trnExpYear>15</trnExpYear>
<ordEmailAddress>randolp2121@gmail.com</ordEmailAddress>
<ordName>Sam Shopper</ordName>
<ordPhoneNumber>999-999-9999</ordPhoneNumber>
<ordAddress1>1407 Graymalkin Lane</ordAddress1>
<ordAddress2 />
<ordCity>Toronto</ordCity>
<ordProvince>ON</ordProvince>
<ordPostalCode>a1a1a1</ordPostalCode>
<ordCountry>CA</ordCountry>
</transaction>
</TransactionProcess>
</soap12:Body>
</soap12:Envelope>
Response:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<TransactionProcessResponse xmlns="http://www.beanstream.com/">
<TransactionProcessResult><![CDATA[<response><trnId></trnId><trnApproved>0</trnApproved><messageId>0</messageId><messageText>Invalid XML format.</messageText></response>]]></TransactionProcessResult>
</TransactionProcessResponse>
</soap:Body>
</soap:Envelope>