Я получаю SOAP исключение ошибки: XML ошибка синтаксического анализа при передаче тега afterAuth в полезной нагрузке XML.
Используемая конечная точка: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor/
XML используемый запрос:
<?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>
Ответ:
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>
Однако тот же запрос работает, когда тег sequenceAuth имеет значение удалено из запроса. Пожалуйста, предложите исправить.