package com.mic.log.util.sms;

import com.mic.log.util.PropertiesUtils;



public class SmsManager {
	public static void main(String[] args)
	{
		String wsAddress=PropertiesUtils.getValue("smsUrl");
		try
		{
			WebServiceClient wsc=new WebServiceClient();
			wsc.init(wsAddress, PropertiesUtils.getValue("smsNamespaceURI"));
			Integer iRet=new Integer(0);
			String[] paraArray=new String[10];
			paraArray[0]="mictest";
			paraArray[1]="focustech1+11";
			paraArray[2]="18913984951";
			paraArray[3]="sms/mt";
			paraArray[4]="ÏîÄ¿¾¯±¨";
			paraArray[5]="ÏîÄ¿EN-·¢ÉúError";
			paraArray[6]=null;
			paraArray[7]="414";
			paraArray[8]="";
			paraArray[9]="";
			iRet=(Integer)wsc.invokeForObject("sendMessageX", paraArray, new Class[]{Integer.class});
			System.out.println(getSmsStatusMsg(iRet));
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}
	public static String getSmsStatusMsg(int iRet)
	{
		if(iRet==-1)
		{
			return "ÓÃ»§Ãû»ò¿ÚÁî´íÎó";
		}
		else if(iRet==-2)
		{
			return "IPÑéÖ¤´íÎó";
			
		}
		else if(iRet==-3)
		{
			return "¶¨Ê±ÈÕÆÚ´íÎó";
			
		}
		else if(iRet==-101)
		{
			return "²ÎÊý´íÎóuserIdÎª¿Õ";
		}
		else if(iRet==-102)
		{
			return "²ÎÊý´íÎóÄ¿±êºÅÂëÎª¿Õ";
		}
		else if(iRet==-103)
		{
			return "²ÎÊý´íÎóÄÚÈÝÎª¿Õ";
		}
		else if(iRet==200)
		{
			return "Ä¿±êºÅÂë´íÎó";
		}
		else if(iRet==201)
		{
			return "Ä¿±êºÅÂëÔÚºÚÃûµ¥ÖÐ";
			
		}
		else if(iRet==202)
		{
			return "ÄÚÈÝ°üº¬Ãô¸Ð´Ê";
		}
		else if(iRet==203)
		{
			return "ÌØ·þºÅÂëÎ´·ÖÅä";
		}
		else if(iRet==204)
		{
			return "·ÖÅäÍ¨µÀ´íÎó";
		}
		else if(iRet==999)
		{
			return "·¢ËÍÈý´Î¶¼³¬Ê±";
		}
		else if(iRet==-10)
		{
			return "Óà¶î²»×ã";
		}
		else 
		{
			return "Î´Öª´íÎó";
		}
	}
}
