|
@@ -1,7 +1,7 @@
|
|
|
package com.galaxis.manatee.webservice;
|
|
|
|
|
|
-import io.spring.guides.gs_producing_web_service.GetCountryRequest;
|
|
|
-import io.spring.guides.gs_producing_web_service.GetCountryResponse;
|
|
|
+
|
|
|
+import io.spring.guides.gs_producing_web_service.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.ws.server.endpoint.annotation.Endpoint;
|
|
|
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
|
|
@@ -18,42 +18,39 @@ public class CountryEndpoint {
|
|
|
public CountryEndpoint(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
|
|
|
-// 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 = "getSchema")
|
|
|
+ @ResponsePayload
|
|
|
+ public String GetSchema(@RequestPayload GetSchema getSchema)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "")
|
|
|
+ public String GetSchemaList()
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getList")
|
|
|
+ public String GetList(@RequestPayload GetList getList)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ //氚云后端调用的方法名
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "invoke")
|
|
|
+ public String Invoke(@RequestPayload Invoke invoke)
|
|
|
+ {
|
|
|
+ //书写调用第三方接口方法
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|