com.acme.webservice.client
Class AddNewMemberClient

java.lang.Object
  extended by com.acme.webservice.client.AddNewMemberClient

public final class AddNewMemberClient
extends java.lang.Object

Example client that uses the Firedrum Web Services API.

This program uses the FWSAPI to add new Members.

The program might be readily changed so as to integrate with Client's CRM application so that changes to the Client's customer database were reflected in the Client's Firedrum campaign database.

Notes:


Field Summary
static java.lang.String CSV_FIELD_PATTERN
          This pattern uses "alternations" to search for three different types of fields in a "Microsoft Excel"-style comma-separated-file (CSV). The first matches a quoted field - i.e.
 
Method Summary
static java.lang.StringBuffer formatStringArray(java.lang.String[] sa)
           
static void main(java.lang.String[] args)
          This main method expects the following input parameters (via the "args" array): URL for the Firedrum MemberService WSDL (Web Service Descriptor Language) file.
static java.lang.String[] parseCSVFields(java.lang.String record, int expectedFields)
          Parse CSV field values.
static java.lang.String[] parseCSVLine(java.lang.String line)
          Parse one line from a comma-separated-values file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSV_FIELD_PATTERN

public static final java.lang.String CSV_FIELD_PATTERN
This pattern uses "alternations" to search for three different types of fields in a "Microsoft Excel"-style comma-separated-file (CSV).

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
This main method expects the following input parameters (via the "args" array):

Parameters:
args -
Throws:
java.lang.Exception

parseCSVFields

public static java.lang.String[] parseCSVFields(java.lang.String record,
                                                int expectedFields)
Parse CSV field values. Trim leading/trailing spaces from each field. Return array with exactly the number of slots as column names (headers).


parseCSVLine

public static java.lang.String[] parseCSVLine(java.lang.String line)
Parse one line from a comma-separated-values file.

Returns:
array of Strings, null for empty fields.

formatStringArray

public static java.lang.StringBuffer formatStringArray(java.lang.String[] sa)


Copyright © 2007 Firedrum Internet Marketing. All Rights Reserved.