import com.bharosa.vcrypt.common.util.VCryptResponse;
import com.bharosa.vcrypt.customercare.impl.VCryptCCSOAPImpl;
/**
 * @author pokuri
 *
 */
public class OAAMProfileReset 
{
 
public static void main(String[]
args) 
  {
    OAAMProfileReset cu
= new OAAMProfileReset();
    String response
= "FAILED";
 
  try 
    {
      response =
cu.resetUserProfile("siva.pokuri");
      System.out.println("Response " + response);
    }
    catch (Exception
e) 
    {
     
e.printStackTrace();
    }
  }
 
public String
resetUserProfile(String userName) 
  {
    System.out.println("Creating user: " + userName);
 
  try 
    {
     
VCryptCCSOAPImpl vcc = new VCryptCCSOAPImpl();
     
VCryptResponse vr = vcc.resetUser(userName);
      System.out.println("Status code Message " + vr.getResponseCode());
 
    if(vr.getResponseCode().equals("0"))
      {
 
      return "SUCCESS";
      }
 
    else
      {
 
      return "FAILED";
      }
    }
    catch (Exception
e) 
    {
         }
 
  return "FAILED";
  }
}
-- Siva Pokuri.
 
 
Could you please let me know how to run the above the code.
ReplyDelete