私が「DT」と呼ばれる特定のデータテーブルからループに入力SKUが「items_estoque」と呼ばれるいくつかの製品の配列を有する:MagentoのSOAP V2エラー(catalogInventoryStockItemList)
Dim items_estoque(0) As String
For Each linha As DataRow In dt.Rows
If Not IsDBNull(linha("codigo_magento")) Then
i += 1
ReDim Preserve items_estoque(i)
items_estoque(i) = linha("codigo_magento")
End If
Next
を私は、Magentoのを呼び出します「catalogInventoryStockItemList」機能を使用してAPI:
3210そして、ほぼ毎回、私はこれを行うには、私は未定義のエラー、SKUまたは配列の長さのindependetを取得します。 This is an example of the array content.
奇妙なことがI can then normaly go back to that same "catalogInventoryStockItemList" function and it will work.
なぜそれが起こるん、私の例から、これらの2つの特定の製品を取得しようとする前に、(Dim produtos = magentoV2_servico.catalogProductList(magentoV2_sessao, filters, "")
)のように、「catalogProductList」を使用してランダムな呼び出しを行う場合、ということですどうしたらいいですか?
おかげで
C# – Sunil