developer:soap:methods:movecustomer

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:movecustomer [2009/07/06 10:15]
epouchak
developer:soap:methods:movecustomer [2009/09/17 10:04]
charlie
Line 26: Line 26:
  
 ===== Examples ===== ===== Examples =====
 +
 +==== 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 to the customer number that you want to move.  "​merch2token"​ represents ​
 +  //a token set up under the merchant the customer is being moved to.
 +  BigInteger CustNum = new BigInteger("​123456"​);​
 +  BigInteger NewCustNum = client.moveCustomer(token,​ CustNum, merch2token);​
 +
 +  System.out.println(NewCustNum);​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
  
  
developer/soap/methods/movecustomer.txt ยท Last modified: 2009/09/17 10:04 by charlie

Page Tools