Table of Content
Інколи виникає завдання діставати деякі значення через Magento API і не завжди легко згадати як саме викликаються потрібні методи.
Короткі приклади для
catalogProductInfo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
< soapenv:Envelope xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn = "urn:Magento" xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/" > < soapenv:Header /> < soapenv:Body > < sessionId xsi:type = "xsd:string" >02720ba0a44f73b3cbbd6acba67538b6</ sessionId > < productId xsi:type = "xsd:string" >12827</ productId > < storeView xsi:type = "xsd:string" >2</ storeView > < attributes xsi:type = "urn:catalogProductRequestAttributes" > <!--You may enter the following 2 items in any order--> <!--Optional:--> < attributes xsi:type = "urn:ArrayOfString" soapenc:arrayType = "xsd:string[]" > </ attributes > <!--Optional:--> < additional_attributes xsi:type = "urn:ArrayOfString" soapenc:arrayType = "xsd:string[]" > < value >tip_izdeliya</ value > < value >metal</ value > </ additional_attributes > </ attributes > </ urn:catalogProductInfo > </ soapenv:Body > </ soapenv:Envelope > |
catalogProductAttributeOptions
1
2
3
4
5
6
7
8
9
10
|
< soapenv:Envelope xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn = "urn:Magento" > < soapenv:Header /> < soapenv:Body > < urn:catalogProductAttributeOptions soapenv:encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" > < sessionId xsi:type = "xsd:string" >02720ba0a44f73b3cbbd6acba67538b6</ sessionId > < attributeId xsi:type = "xsd:string" >tip_izdeliya</ attributeId > < storeView xsi:type = "xsd:string" >2</ storeView > </ urn:catalogProductAttributeOptions > </ soapenv:Body > </ soapenv:Envelope > |
Ланки: