php - Soap fail function response -


i have soap client code auto parts elit company have strange result.

object(stdclass)[225]   public 'return' =>      object(stdclass)[226]       public 'unitprice' => float 0       public 'vat' => int 0 

my php code:

getitem function must have array parameters:

7 => string 'struct getitem {      string company;      string login;      string password;      string activeitemno; }  public function demo($piesa) {      $wsdl = 'http://icelit02.elit.cz:7606/intercompany-1.10.0/buyerservice?wsdl';     $opts = array('http' => array('protocol_version' => '1.0'));     $context = stream_context_create($opts);     $client = new soapclient($wsdl, array('stream_context' => $context));       var_dump($client->__getfunctions());      var_dump($client->__gettypes());     $response=$client->__call('getitem', array(array('company'=>'elit_ro', 'login'=>'autocomplet15', 'password'=>'elena10', 'activeitemno'=>'m043 22 00')));      dd($response);     } 

the item 'activeitemno'=>'m043 22 00' doesn't exist in catalogue. try existing, e.g. 'activeitemno'=>'ate 390569'.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -