soap - NetSuite- postman -休息- "Incorrect data center requested!"

标签 soap postman netsuite

我正在使用 Postman 连接到 NetSuite,并且所有设置和授权均已完成。 当我尝试对示例模板使用 GET 方法时,请求返回 Status 200 OK,但出现此错误?

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>
                soapenv:Server.userException
            </faultcode>
            <faultstring>
                Incorrect data center requested! The data center you are requesting is not the data center where your account is hosted. To obtain the correct URL for your request, please use the SOAP getDataCenterUrls operation.
            </faultstring>
            <detail>
                <platformFaults:unexpectedErrorFault xmlns:platformFaults="urn:faults_/services/rest/record/v1/metadata-catalog/customer.platform.webservices.netsuite.com">
                    <platformFaults:code>
                        USER_ERROR
                    </platformFaults:code>
                    <platformFaults:message>
                        Incorrect data center requested! The data center you are requesting is not the data center where your account is hosted. To obtain the correct URL for your request, please use the SOAP getDataCenterUrls operation.
                    </platformFaults:message>
                </platformFaults:unexpectedErrorFault>
                <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">
                    acct027.prod.svale.netledger.com
                </ns1:hostname>
            </detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

我的 URL 设置与我的公司 URL 设置相同: Company URL

PostMan Setup

我见过类似的其他案例,所有响应都与获取公司 URL 中的地址有关,就像我所做的那样。

可能出了什么问题?

谢谢!

最佳答案

实际上,我的 postman 设置中有一些错误:

Account_ID 应完全像这样输入,以大写字母: enter image description here

但是公司 URL 和 Rest 服务应该保持这样: enter image description here

这对我有用。

关于soap - NetSuite- postman -休息- "Incorrect data center requested!",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64375964/

相关文章:

javascript - 使用 SABA 的 Web 服务

javascript - 为什么我的 JavaScript 代码收到“"No ' Access-Control-Allow-Origin' header is present on the requested resources”错误,而 Postman 却没有?

javascript - 使用 postman 无法从express.js服务器获得响应

json - 使用 Postman 编码变量

javascript - NetSuite 脚本在提交后从另一个行级字段更新

java - 在 Java 多线程环境中分配唯一代理

android - 如何在 Android 中解析复杂的 soap 对象

javascript - 从 Adob​​e Acrobat X Javascript 调用 Web 服务

soap - Netsuite - 如何为 getall 请求指定 record_type

javascript - 除了 .toFixed() 方法之外,还有其他方法可以在 suitelet 中将小数点后 2 位数字打印为小数点后 3 位吗?