すべての InventoryItems のリストを取得したい このドキュメントによると: https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteTalkWebServices/getAll.html
次のリクエストを作成しています。
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:platformMsgs="urn:platform_2013_1.webservices.netsuite.com" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<passport>
<email>******</email>
<password>******</password>
<account>******</account>
</passport>
</env:Header>
<env:Body>
<platformMsgs:getAll>
<recordType>InventoryItem</recordType>
</platformMsgs:getAll>
</env:Body>
</env:Envelope>
しかし、エラーで応答を受け取ります:
<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:Header>
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2013_1.platform.webservices.netsuite.com">
<platformMsgs:nsId>WEBSERVICES_969904_100920131651936419141601801_cbf1690968b43</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<getAllResponse xmlns="urn:platform_2013_1.webservices.netsuite.com">
<platformCore:getAllResult xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com">
<platformCore:status isSuccess="false">
<platformCore:statusDetail type="ERROR">
<platformCore:code>GETALL_RCRD_TYPE_REQD</platformCore:code>
<platformCore:message>The getAll record type is required.</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</platformCore:getAllResult>
</getAllResponse>
</soapenv:Body>
</soapenv:Envelope>
通貨、州をリクエストしようとしましたが、応答は常に同じです
次のバリアントを試しました:
<GetAllRecordType>inventoryItem</GetAllRecordType>
と
<recordType>inventoryItem</recordType>
と
<GetAllRecordType>currency</GetAllRecordType>
と
<recordType>currency</recordType>
同じ応答で:
<platformCore:message>The getAll record type is required.</platformCore:message>
https://webservices.netsuite.com/xsd/platform/v2013_2_0/coreTypes.xsdによると- recordType を正しく指定しました (ところで、成功せずに試してみました)
Ruby を使用していますが、Ruby 用の完全なライブラリはありません。存在するものには、私が使用するほとんどすべてのものは含まれていません。
誰かが私が間違っていることを助けてくれますか、または誰かが実際の例を持っているかもしれません