developer:soap:methods:updatecustomer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
developer:soap:methods:updatecustomer [2009/01/19 13:19]
hmcgowan
developer:soap:methods:updatecustomer [2009/01/19 13:21]
hmcgowan
Line 45: Line 45:
 <code php> <code php>
 <?​php ​ <?​php ​
- 
  
 try {  try { 
Line 54: Line 53:
   $customer->​Description='​New Description'; ​   $customer->​Description='​New Description'; ​
            
-  $res=$tran->​updateCustomer($token,​ 1309, $customer); ​+  $res=$client->​updateCustomer($token,​ 1309, $customer); ​
            
   print_r($res); ​   print_r($res); ​
- 
-    //​$res=$tran->​addCustomer($token,​$customerdata); ​ 
-    //​print_r($res); ​ 
            
 +
  
-catch(SoapFault $e) { +catch(SoapFault $e) { 
            
-    ​echo "​SoapFault:​ " .$e->​getMessage();​  +  ​echo "​SoapFault:​ " .$e->​getMessage();​  
-    print_r($e);​  +  print_r($e);​  
-    echo "​\n\nRequest:​ " . $tran->​__getLastRequest();​  +  echo "​\n\nRequest:​ " . $client->​__getLastRequest();​  
-    echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​+  echo "​\n\nResponse:​ " . $client->​__getLastResponse(); ​
            
  
- 
- 
- 
  
 ?>  ?> 
 </​code>​ </​code>​
  
developer/soap/methods/updatecustomer.txt · Last modified: 2009/07/06 10:00 by epouchak

Page Tools