package test;

import java.util.HashMap;
import java.util.Map;

import com.pugwoo.hessoa.client.SOAClient;
import com.pugwoo.hessoa.test.api.entity.UserDO;
import com.pugwoo.hessoa.test.api.service.ISchoolService;
import com.pugwoo.hessoa.test.api.service.IUserService;

import test.dto.UserVO;

public class TestClient2 {
	
	public static void main(String[] args) throws Exception {
		IUserService userService = SOAClient.getService(IUserService.class);
		ISchoolService schoolService = SOAClient.getService(ISchoolService.class);
		
		System.out.println("userService:" + userService);
		System.out.println("schoolService:" + schoolService);
		
		UserVO userVO = new UserVO();
		userVO.setName("nick");
		userVO.setScore(99);
		userVO.setMything("mmm");
		
		Map<Object, UserDO> map = new HashMap<Object, UserDO>();
		map.put("nick", userVO);
		map.put(1, userVO);
		
		for(int i = 0; i < 1000; i++) {
			String result = userService.insert(map);
			System.out.println(i + ":" + result);
			Thread.sleep(1000);
		}
		
	}
	
}

@@ -887,16 +887,17 @@
 i %3C 1000
+0
 ; i++) %7B
@@ -897,16 +897,26 @@
  i++) %7B%0A
+%09%09%09try %7B%0A%09
 %09%09%09Strin
@@ -951,16 +951,17 @@
 t(map);%0A
+%09
 %09%09%09Syste
@@ -996,16 +996,17 @@
 lt);%0A%09%09%09
+%09
 Thread.s
@@ -1016,12 +1016,67 @@
 p(10
-00
 );
+%0A%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%7D
 %0A%09%09%7D

test it