package bss.intf.thread;
import java.rmi.RemoteException;
import crmwsi.crm.WSSPortTypeProxy;
/**
* @author zhangyp
* @version 2009-02-28
*/
public class ThreadClient extends Thread {
int num;
public void setNum(int n) {
this.num = n;
}
//在run里面变动业务处理的逻辑
public void run() {
int i = 0;
String accNbr = "18920020202";
int accNbrType = 4;
String password = "111";
int passwordType = 1;
int encryptFlag = 1;
String areaCode = "022";
String channelId = "-10000";
String staffCode = "-10000";
String outXml = "";
while (i < 40) {
System.out.println("==========第"+ num + "线程里面,第"+ i + "次请求START=======");
WSSPortTypeProxy proxy = new WSSPortTypeProxy();
proxy.setEndpoint(
"http://136.64.44.237:9010/BssCrmWebService/services/CustomerService_B");
try {
outXml =
proxy.checkPassword(
accNbr,
accNbrType,
password,
passwordType,
encryptFlag,
areaCode,
channelId,
staffCode);
System.out.println(" outXml=" + outXml);
i++;
System.out.println(
"***********第" + num + "线程里面,第" + i + "次请求END*****");
} catch (RemoteException e) {
System.out.println("ERROR");
e.printStackTrace();
}
}
}
public static void main(String[] args) {
}
}