浏览代码

1.修改webservice

WoNiu 4 年之前
父节点
当前提交
f1844d75c4
共有 1 个文件被更改,包括 35 次插入35 次删除
  1. 35 35
      src/main/java/com/galaxis/manatee/webservice/CountryEndpoint.java

+ 35 - 35
src/main/java/com/galaxis/manatee/webservice/CountryEndpoint.java

@@ -18,42 +18,42 @@ public class CountryEndpoint {
 	public CountryEndpoint(CountryRepository countryRepository) {
 	public CountryEndpoint(CountryRepository countryRepository) {
 		this.countryRepository = countryRepository;
 		this.countryRepository = countryRepository;
 	}
 	}
-//
-//	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getCountryRequest")
-//	@ResponsePayload
-//	public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request) {
-//		GetCountryResponse response = new GetCountryResponse();
-//		response.setCountry(countryRepository.findCountry(request.getName()));
-//		return response;
-//	}
-
-	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaRequest")
-	@ResponsePayload
-	public String GetSchema(String schemaCode)
-	{
-		return null;
-	}
-
-	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaListRequest")
-	@ResponsePayload
-	public String GetSchemaList()
-	{
-		return null;
-	}
-
-	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getListRequest")
-	@ResponsePayload
-	public String GetList(String userCode, String schemaCode, String filter)
-	{
-		return null;
-	}
 
 
-    //氚云后端调用的方法名
-	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "invokeRequest")
+	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getCountryRequest")
 	@ResponsePayload
 	@ResponsePayload
-	public String Invoke(String userCode, String schemaCode, String methodName, String param)
-	{
-        //书写调用第三方接口方法
-		return null;
+	public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request) {
+		GetCountryResponse response = new GetCountryResponse();
+		response.setCountry(countryRepository.findCountry(request.getName()));
+		return response;
 	}
 	}
+//
+//	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaRequest")
+//	@ResponsePayload
+//	public String GetSchema(String schemaCode)
+//	{
+//		return null;
+//	}
+//
+//	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaListRequest")
+//	@ResponsePayload
+//	public String GetSchemaList()
+//	{
+//		return null;
+//	}
+//
+//	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getListRequest")
+//	@ResponsePayload
+//	public String GetList(String userCode, String schemaCode, String filter)
+//	{
+//		return null;
+//	}
+//
+//    //氚云后端调用的方法名
+//	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "invokeRequest")
+//	@ResponsePayload
+//	public String Invoke(String userCode, String schemaCode, String methodName, String param)
+//	{
+//        //书写调用第三方接口方法
+//		return null;
+//	}
 }
 }