Skip to content

XML parse exception is thrown when subsequentAuth tag is passed in TransactionProcessor request for Cybersource #36

@helloforce2020

Description

@helloforce2020

Iam getting SOAP fault exception : XML parse error when passing subsequentAuth tag in the XML payload.

Endpoint used: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor/

XML request used:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>steelbrickbilling</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">**MASKED**</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </s:Header>
   <s:Body>
      <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.161">
         <merchantID>steelbrickbilling</merchantID>
         <subsequentAuth>true</subsequentAuth>
         <merchantReferenceCode>steelbrickbilling</merchantReferenceCode>
         <purchaseTotals>
            <currency>USD</currency>
            <grandTotalAmount>5</grandTotalAmount>
         </purchaseTotals>
         <recurringSubscriptionInfo>
            <subscriptionID>**MASKED**</subscriptionID>
         </recurringSubscriptionInfo>
         <ccAuthService run="true">
            <authType>AUTOCAPTURE</authType>
         </ccAuthService>
         <ccCaptureService run="true" />
      </requestMessage>
   </s:Body>
</s:Envelope>

Response:

HTTP/1.1 500 Internal Server Error
Server=Apache-Coyote/1.1
X-OPNET-Transaction-Trace=a2_79ec7399-e512-4ccd-b261-c1085012c3de
Strict-Transport-Security=max-age=31536000
X-Frame-Options=DENY
X-Content-Type-Options=nosniff
X-XSS-Protection=1; mode=block
v-c-response-time=1580829613
Content-Type=text/xml
Content-Length=773
Date=Tue, 04 Feb 2020 15:20:13 GMT
X-Cnection=close

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-216660870"><wsu:Created>2020-02-04T15:20:13.702Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header>
<soap:Body>
<soap:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:c="urn:schemas-cybersource-com:transaction-data-1.0">
<faultcode>soap:Client</faultcode>
<faultstring>
XML parse error.
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

However, the same request works when subsequentAuth tag is removed from the request. Please suggest a fix.

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