developer:soap:methods:enablecustomer

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap:methods:enablecustomer [2009/01/19 11:45]
hmcgowan
developer:soap:methods:enablecustomer [2009/09/08 12:31]
charlie
Line 1: Line 1:
-====== enableCustomer ======+<embed ..:​contents/>​====== enableCustomer ======
  
  
Line 22: Line 22:
 ===== Syntax ===== ===== Syntax =====
  
-boolean **enableCustomer** ( [[developer:​soap:​objects:​ueSecurityToken]] Token, integer CustNum ) +boolean **enableCustomer** ( [[..:​objects:​ueSecurityToken]] Token, integer CustNum ) 
  
  
Line 28: Line 28:
  
 ^Type   ​^Name ​  ​^Description ​  ^ ^Type   ​^Name ​  ​^Description ​  ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.|+|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.|
 |integer |CustNum |A unique customer number assigned by the gateway. | |integer |CustNum |A unique customer number assigned by the gateway. |
  
Line 40: Line 40:
 ==== PHP ==== ==== PHP ====
  
-For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[developer:​soap:​howto:​php|PHP Soap How-to]].+For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​howto:​php|PHP Soap How-to]].
  
 <code php> <code php>
Line 47: Line 47:
 try {  try { 
  
-  $custnum=$this->​createCustomer()+  $custnum="​12345678"​
  
   $res=$client->​enableCustomer($token,​ $custnum); ​       $res=$client->​enableCustomer($token,​ $custnum); ​    
- 
-  $this->​assertTrue($res);  ​ 
  
   }    } 
Line 57: Line 55:
 catch(SoapFault $e) {  catch(SoapFault $e) { 
                    
-  ​die("soap fault: " .$e->​getMessage()); +  ​echo "soap fault: " .$e->​getMessage(); ​
         ​         ​
   }    } 
  
 ?>  ?> 
 +</​code>​
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +try {
 +  //Set CustNum for the Customer that you want to enable
 +  BigInteger CustNum = new BigInteger("​12345678"​);​
 +
 +  client.enableCustomer(token,​ CustNum);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/enablecustomer.txt ยท Last modified: 2009/09/08 12:31 by charlie

Page Tools