StorageItemAdd
(Różnice między wersjami)
Linia 9: | Linia 9: | ||
<Type>StorageItemAdd</Type> | <Type>StorageItemAdd</Type> | ||
<StorageItemAdd> | <StorageItemAdd> | ||
− | < | + | <Group> |
<ItemMapID>12</ItemMapID> | <ItemMapID>12</ItemMapID> | ||
− | <Quantity> | + | <Quantity>2.0</Quantity> |
<TaxID>4</TaxID> | <TaxID>4</TaxID> | ||
<UnitID>8</UnitID> | <UnitID>8</UnitID> | ||
− | < | + | <Item> |
− | <AttributeID>1</AttributeID> | + | <Attribute> |
− | + | <AttributeID>1</AttributeID> | |
− | + | <Value>00:01:88:44:33:11</Value> | |
− | + | </Attribute> | |
− | + | <Attribute> | |
− | + | <AttributeID>3</AttributeID> | |
− | + | <Value>2012-10-01</Value> | |
− | + | </Attribute> | |
− | + | <Attribute> | |
− | + | <AttributeID>5</AttributeID> | |
− | + | <Value>320.00</Value> | |
− | + | </Attribute> | |
− | + | <Attribute> | |
− | + | <AttributeID>6</AttributeID> | |
− | + | <Value>350.00</Value> | |
− | <Attribute> | + | </Attribute> |
− | <AttributeID> | + | <Attribute> |
− | <Value>00GEA564684GASGAE</Value> | + | <AttributeID>2</AttributeID> |
− | + | <Value>00GEA564684GASGAE</Value> | |
− | + | </Attribute> | |
− | </ | + | </Item> |
+ | <Item> | ||
+ | <Attribute> | ||
+ | <AttributeID>1</AttributeID> | ||
+ | <Value>00:01:88:44:33:11</Value> | ||
+ | </Attribute> | ||
+ | <Attribute> | ||
+ | <AttributeID>3</AttributeID> | ||
+ | <Value>2012-10-01</Value> | ||
+ | </Attribute> | ||
+ | <Attribute> | ||
+ | <AttributeID>5</AttributeID> | ||
+ | <Value>320.00</Value> | ||
+ | </Attribute> | ||
+ | <Attribute> | ||
+ | <AttributeID>6</AttributeID> | ||
+ | <Value>350.00</Value> | ||
+ | </Attribute> | ||
+ | <Attribute> | ||
+ | <AttributeID>2</AttributeID> | ||
+ | <Value>00GEA564684GASGAE</Value> | ||
+ | </Attribute> | ||
+ | </Item> | ||
+ | </Group> | ||
+ | <Group> | ||
<ItemMapID>12</ItemMapID> | <ItemMapID>12</ItemMapID> | ||
− | <Quantity>8. | + | <Quantity>8.3</Quantity> |
<TaxID>4</TaxID> | <TaxID>4</TaxID> | ||
<UnitID>8</UnitID> | <UnitID>8</UnitID> | ||
− | < | + | <Item> |
− | <AttributeID>1</AttributeID> | + | <Attribute> |
− | + | <AttributeID>1</AttributeID> | |
− | + | <Value>00:01:88:44:33:11</Value> | |
− | + | </Attribute> | |
− | + | <Attribute> | |
− | + | <AttributeID>3</AttributeID> | |
− | + | <Value>2012-10-01</Value> | |
− | + | </Attribute> | |
− | <AttributeID> | + | <Attribute> |
− | <Value>00GEA564684GASGAE</Value> | + | <AttributeID>5</AttributeID> |
− | + | <Value>320.00</Value> | |
− | + | </Attribute> | |
+ | <Attribute> | ||
+ | <AttributeID>6</AttributeID> | ||
+ | <Value>350.00</Value> | ||
+ | </Attribute> | ||
+ | <Attribute> | ||
+ | <AttributeID>2</AttributeID> | ||
+ | <Value>00GEA564684GASGAE</Value> | ||
+ | </Attribute> | ||
+ | </Item> | ||
+ | </Group> | ||
<SupplierID>4</SupplierID> | <SupplierID>4</SupplierID> | ||
<StorageID>2</StorageID> | <StorageID>2</StorageID> |
Wersja z 13:21, 8 sie 2012
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Priority> <Request> <Type>StorageItemAdd</Type> <StorageItemAdd> <Group> <ItemMapID>12</ItemMapID> <Quantity>2.0</Quantity> <TaxID>4</TaxID> <UnitID>8</UnitID> <Item> <Attribute> <AttributeID>1</AttributeID> <Value>00:01:88:44:33:11</Value> </Attribute> <Attribute> <AttributeID>3</AttributeID> <Value>2012-10-01</Value> </Attribute> <Attribute> <AttributeID>5</AttributeID> <Value>320.00</Value> </Attribute> <Attribute> <AttributeID>6</AttributeID> <Value>350.00</Value> </Attribute> <Attribute> <AttributeID>2</AttributeID> <Value>00GEA564684GASGAE</Value> </Attribute> </Item> <Item> <Attribute> <AttributeID>1</AttributeID> <Value>00:01:88:44:33:11</Value> </Attribute> <Attribute> <AttributeID>3</AttributeID> <Value>2012-10-01</Value> </Attribute> <Attribute> <AttributeID>5</AttributeID> <Value>320.00</Value> </Attribute> <Attribute> <AttributeID>6</AttributeID> <Value>350.00</Value> </Attribute> <Attribute> <AttributeID>2</AttributeID> <Value>00GEA564684GASGAE</Value> </Attribute> </Item> </Group> <Group> <ItemMapID>12</ItemMapID> <Quantity>8.3</Quantity> <TaxID>4</TaxID> <UnitID>8</UnitID> <Item> <Attribute> <AttributeID>1</AttributeID> <Value>00:01:88:44:33:11</Value> </Attribute> <Attribute> <AttributeID>3</AttributeID> <Value>2012-10-01</Value> </Attribute> <Attribute> <AttributeID>5</AttributeID> <Value>320.00</Value> </Attribute> <Attribute> <AttributeID>6</AttributeID> <Value>350.00</Value> </Attribute> <Attribute> <AttributeID>2</AttributeID> <Value>00GEA564684GASGAE</Value> </Attribute> </Item> </Group> <SupplierID>4</SupplierID> <StorageID>2</StorageID> <DocumentTypeID>8</DocumentTypeID> <DocumentNumber>10/PZ/23/2012</DocumentNumber> <DateOfPurchase>2012-08-01 00:00:00</DateOfPurchase> </StorageItemAdd> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>StorageItemAdd</Type> <StorageItemAdd> <Item> <ID>2</ID> <StorageID>4</StorageID> <ItemMapID>10</ItemMapID> <GroupName>Przewody</GroupName> <ItemMapName>h155</ItemMapName> <Unit>m</Unit> <!-- godz, kg, litr, m, mkw, opak, szt --> <Quantity>4.5</Quantity> <DocumentID>41</DocumentID> <MAC></MAC> <Serial></Serial> <SupplierID>4</SupplierID> <CreateDate>2012-04-07 11:11:11</CreateDate> </Item> <Item> <ID>2</ID> <StorageID>4</StorageID> <ItemMapID>10</ItemMapID> <GroupName>Przewody</GroupName> <ItemMapName>h155</ItemMapName> <Unit>m</Unit> <!-- godz, kg, litr, m, mkw, opak, szt --> <Quantity>4.5</Quantity> <DocumentID>41</DocumentID> <MAC></MAC> <Serial></Serial> <SupplierID>4</SupplierID> <CreateDate>2012-04-07 11:11:11</CreateDate> </Item> </StorageItemAdd> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Brak uprawnień</Error> </Request> </Net47> //BEGINEND//