为了账号安全,请及时绑定邮箱和手机立即绑定

无法发送soap请求-无效的API命名空间-

无法发送soap请求-无效的API命名空间-

PHP
弑天下 2021-06-29 02:09:42
我正在尝试在 Laravel 应用程序中使用简单的 curl 调用发送肥皂请求,但出现下一个错误。<faultcode>soap:Client</faultcode><faultstring>Invalid API namespace</faultstring>这是 XML 请求<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">    <SOAP-ENV:Header        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"        xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">        <wsse:Security SOAP-ENV:mustUnderstand="1">            <wsse:UsernameToken>                <wsse:Username>usename</wsse:Username>                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">randompass</wsse:Password>            </wsse:UsernameToken>        </wsse:Security>    </SOAP-ENV:Header>    <soapenv:Body>        <requestMessage            xmlns="urn:schemas-cybersource-com:transaction-data-N.NN">            <merchantID>themerchantid</merchantID>            <merchantReferenceCode>the reference</merchantReferenceCode>            <billTo>                <firstName>Name</firstName>                <lastName></lastName>                <street1></street1>                <city></city>                <state></state>                <postalCode></postalCode>                <country></country>                <email>name@mail.com</email>            </billTo>            <item id="1">                <unitPrice>25</unitPrice>                <quantity>1</quantity>            </item>            <purchaseTotals>                <currency>EUR</currency>            </purchaseTotals>            <card>                <accountNumber>9898989898989898</accountNumber>                <expirationMonth>10</expirationMonth>                <expirationYear>20</expirationYear>            </card>            <ccAuthService run="true"/>        </requestMessage>    </soapenv:Body></soapenv:Envelope>我不知道为什么会出现此错误。请求有什么问题?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 397 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号