Request
Field Name | Data Type | Description |
req | GetInventoryRequest | Properties required to request a product inventory |
response | GetInventoryResponse | An object with the product’s inventory details |
Sample vb.net code:
InventoryService is different than SCService. Please use a different namespace when adding the new Web Reference due to duplicate classes
URL is http://xx.ws.sellercloud.com/SCInventoryService.asmx the XX should be replaced with your serverID
URL is http://xx.ws.sellercloud.com/SCInventoryService.asmx the XX should be replaced with your serverID
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Dim sc As New SC.SCInventoryServiceSoapClient() Dim auth As New SC.AuthHeader auth.ApplicationName = "GetInventoryApplication" auth.ApplicationVersion = "1" auth.UserName = tbUserName.Text.Trim //your CWA username goes here auth.Password = tbPassword.Text.Trim //your CWA password goes here Dim inv As New SC.GetInventoryResponseType Try inv = sc.GetInventory(auth, ProductID, warehouseID) Catch ex As Exception InvLabel.ForeColor = Color.Red InvLabel.Text = "Error getting inventory. ErrorMessage: " & ex.Message End Try // You can now reference the ResponseType Object Dim result as string = "" result += "ProductID: " & inv.ProductID & vbcrlf result += "WarehouseName: " & inv.WarehouseName & vbcrlf result += "Available Qty: " & inv.AvailQty & vbcrlf result += "Physical Qty: " & inv.PhysicalQty & vbcrlf result += "Inventory Date: " & inv.InventoryDate & vbcrlf lblResult.text = result |
Attachments: