Skip to content

XML Parsing Error #27

@ziyadparekh

Description

@ziyadparekh

This is my XML

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:data="urn:schemas-cybersource-com:transaction-data-1.120" xmlns:tns="urn:schemas-cybersource-com:transaction-data:TransactionProcessor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.120">
         <merchantReferenceCode>Unknown</merchantReferenceCode>
         <purchaseTotals>
            <currency>USD</currency>
            <grandTotalAmount>5.55</grandTotalAmount>
         </purchaseTotals>
         <billTo>
            <firstName>John</firstName>
            <lastName>Tester</lastName>
            <street1>123 Main Street</street1>
            <city>Columbia</city>
            <state>Sindh</state>
            <postalCode>75080</postalCode>
            <country>PK</country>
            <email>[email protected]</email>
            <ipAddress>0.0.0.0</ipAddress>
         </billTo>
         <card>
            <accountNumber>4111111111111111</accountNumber>
            <expirationMonth>12</expirationMonth>
            <expirationYear>2018</expirationYear>
            <cvNumber>111</cvNumber>
         </card>
      </requestMessage>
   </soap:Body>
</soap:Envelope>

Not sure why its throwing a Parsing Error. Is it because its wrapped in a <soap:envelope> and <soap:Body> tags

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions