Problem when using PEAR/SOAP at Drupal 6.15

Hi all,
Moi nguoi oi, giup do gium voi.
Minh` co' ta.o mot module moi, trong do' co' tao. mot class moi va include file SOAP/Client.php.
Khi chay tren moi truong window thi OK, ko bi loi gi ca, nhung khi chay tren moi truong Linux no' van goi duoc cac phuong thuc trong class, tuy nhien song song do', trong report ben admin van bao cai loi "
"include_once() [function.include]: Failed opening 'SOAP/Client.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/savingcall/sites/all/modules/mydrupalwebsite/includes/mywebservice.php on line 3."
Khong hieu tai sao luon, mac du van chay duoc ma van bao cai loi.

"Noi dung file mywebservice.php" nhu ben duoi

<?php
include_once 'SOAP/Client.php';
class 
mywebservice
{
      var 
$wsclient
      function 
mywebservice(){
    
$wsdl_url "http://localhost/MyService1.asmx?wsdl";        
    
ini_set'soap.wsdl_cache_enabled'false );
    
ini_set'soap.wsdl_cache_ttl');
               
$this->wsclient = new SoapClient($wsdl_url, array('exceptions' => 1,'connection_timeout'=>3600));
      }
    function 
authenticate($phone_number$password)
    {        
                
$result =  $this->wsclient->Authenticate(array("phone"=>$phone_number"password"=>$password));        
                if (
is_soap_fault($result)) {
    
trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})"E_USER_ERROR);
              }else{
            return 
$result->AuthenticateResult;
              }
     }
}    
?>

Bạn vui lòng nhập tiếng Việt

Bạn vui lòng nhập tiếng Việt có dấu.

Thanks,

Thế Hồng

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.