web services - SoapClient does not recognize a function I am seeing in WSDL -


i have simple webservice in symfony2 working perfectly. have added new method, however, strangely, method not recognized, when see in wsdl definition.

please load: wsdl definition

method called getholiday

the controller executes method following:

public function getholidayaction() {     date_default_timezone_set('america/santiago');      $request = $this->getrequest();      $client = new \soapclient('http://' . $request->gethttphost() . $request->getscriptname() . '/feriados?wsdl');      $year = $request->get('year');     $month = $request->get('month');     $day = $request->get('day');      $types = $client->__getfunctions();      var_dump($types);     die();      $result = $client->getholiday('8cd4c502f69b5606a8bef291deaac1ba83bb7727', 'cl', $year, $month, $day);     echo $result;     die(); } 

after call __getfunctions call, getholiday method missing.

if want see __getfunctions response, please load online site

enter date in input field. response appear in red.

the curious thing, works in development machine has redhat operating system (my hosting hostgator).

any appreciated,

finally, problem wsdl being cached.

to make first test, used

  $client = new \soapclient('http://' . $request->gethttphost() . $request->getscriptname() . '/feriados?wsdl', array('cache_wsdl' => wsdl_cache_none) );  

to instantiate soapclient. way, worked. rid of wsdl_cache_none parameter, deleted files start wsdl in /tmp folder.

regards, jaime


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -