我正在尝试使用邮递员(Postman)将POST发布到Cybersource Simple Order API,但这样做时返回的却没有标题错误。我在这里做错了什么?由于使用商家ID作为用户名,因此使用什么作为密码,这应该是“简单订单”交易处理密钥吗?
将以下XML数据发布到测试端点(https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor):
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>merchantname</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile1.0#PasswordText">key</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.150">
<merchantID>merchantname</merchantID>
<merchantReferenceCode>12345678912</merchantReferenceCode>
<recurringSubscriptionInfo>
<subscriptionID>12345678901234567890</subscriptionID>
</recurringSubscriptionInfo>
<paySubscriptionDeleteService run="true"/>
</requestMessage>
</soapenv:Body>
</soapenv:Envelope>
答案 0 :(得分:1)
您的命名空间有一个小错误。您错过了“-”。
oasis-200401-wss-wssecurity-secext1.0.xsd
应该是
oasis-200401-wss-wssecurity-secext-1.0.xsd
和
oasis-200401-wss-username-token-profile1.0#PasswordText
应该是
oasis-200401-wss-username-token-profile-1.0#PasswordText