n11 soap api ile ürün güncellerken failureSELLER_API.notFound2015 bulunamadı SELLER_API hatası alıyorum
kodlar aşağıdaki şekilde sizce neden bu hatayı veriyor olabilir?
auth bilgilerim doğru aşağıda farklı yazdım.
<?php $xml_data = ' <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.n11.com/ws/schemas"> <soapenv:Header/> <soapenv:Body> <sch:UpdateStockByStockSellerCodeRequest> <auth> <appKey>75eea06a-7d127-4f18-b918-1226b9209c914e</appKey> <appSecret>sdd22kMqlCUNM67ki4</appSecret> </auth> <stockItems> <!--1 or more repetitions:--> <stockItem> <sellerStockCode>2015</sellerStockCode> <quantity>20</quantity> <version>1</version> </stockItem> </stockItems> </sch:UpdateStockByStockSellerCodeRequest> </soapenv:Body> </soapenv:Envelope> '; $headers = array( "POST /WebService/ThirdParty/ThirdPartyService.asmx HTTP/1.1", "Referer: www.n11.com", "User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9505 Build/KOT49H)", "Content-Type: text/xml; charset=utf-8", "Host: api.n11.com", "Content-length: ".strlen($xml_data), "Expect: 100-continue" ); $url = 'https://api.n11.com/ws/ProductStockService.wsdl'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); $reply = curl_exec($ch); echo($reply); ?>