Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
helloforce2020 opened this issue Feb 5, 2020 · 0 comments

Comments

@helloforce2020
Copy link

helloforce2020 commented Feb 5, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant