<?php error_reporting(0); parse_str(implode('&', array_slice($argv, 1)), $_GET); $client = new SoapClient("http://autoformat.com.ua/wsdl/server.php?wsdl", array('encoding' => 'cp1251', 'connection_timeout' => 3)); $Login = '******'; $Passwd = 'zo4fel'; $OemCode = $_GET['query']; $UserParam = array('login' => $Login, 'passwd' => $Passwd); $PartsPrice = $client->getPartsPrice($OemCode, $UserParam); echo json_encode($PartsPrice);