developer:soap:methods:getcustomer

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:getcustomer [2009/07/06 09:26]
epouchak
developer:soap:methods:getcustomer [2009/09/08 13:07]
charlie
Line 54: Line 54:
  
 ?>  ?> 
 +</​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 to the Customer Number of customer you want to retrieve.
 +  BigInteger custnum = new BigInteger("​12345678"​);​
 +
 +  CustomerObject customer = new CustomerObject();​
 +
 +  customer = client.getCustomer(token,​ custnum);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
developer/soap/methods/getcustomer.txt ยท Last modified: 2009/09/08 13:07 by charlie

Page Tools