|
@@ -1,59 +1,51 @@
|
|
package com.galaxis.manatee.webservice;
|
|
package com.galaxis.manatee.webservice;
|
|
|
|
|
|
|
|
|
|
-import io.spring.guides.gs_producing_web_service.*;
|
|
|
|
|
|
+import io.spring.guides.gs_producing_web_service.GetList;
|
|
|
|
+import io.spring.guides.gs_producing_web_service.GetSchema;
|
|
|
|
+import io.spring.guides.gs_producing_web_service.GetSchemaList;
|
|
|
|
+import io.spring.guides.gs_producing_web_service.Invoke;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.ws.server.endpoint.annotation.Endpoint;
|
|
import org.springframework.ws.server.endpoint.annotation.Endpoint;
|
|
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
|
|
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
|
|
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
|
|
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
|
|
import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
|
import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * @author kxuan
|
|
|
|
+ * @version 1.0
|
|
|
|
+ */
|
|
@Endpoint
|
|
@Endpoint
|
|
public class CountryEndpoint {
|
|
public class CountryEndpoint {
|
|
- private static final String NAMESPACE_URI = "http://spring.io/guides/gs-producing-web-service";
|
|
|
|
|
|
+ private static final String NAMESPACE_URI = "http://galaxis.com/manatee/chuanyun-web-service";
|
|
|
|
|
|
- private CountryRepository countryRepository;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- 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 = "getSchema")
|
|
|
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetSchema")
|
|
@ResponsePayload
|
|
@ResponsePayload
|
|
- public String GetSchema(@RequestPayload GetSchema getSchema)
|
|
|
|
|
|
+ public String getSchema(@RequestPayload GetSchema request)
|
|
{
|
|
{
|
|
- return null;
|
|
|
|
|
|
+ return "";
|
|
}
|
|
}
|
|
|
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "")
|
|
|
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetSchemaList")
|
|
@ResponsePayload
|
|
@ResponsePayload
|
|
- public String GetSchemaList()
|
|
|
|
|
|
+ public String getSchemaList(@RequestPayload GetSchemaList request)
|
|
{
|
|
{
|
|
- return null;
|
|
|
|
|
|
+ return "";
|
|
}
|
|
}
|
|
|
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getList")
|
|
|
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetList")
|
|
@ResponsePayload
|
|
@ResponsePayload
|
|
- public String GetList(@RequestPayload GetList getList)
|
|
|
|
- {
|
|
|
|
- return null;
|
|
|
|
|
|
+ public String getList(@RequestPayload GetList request) {
|
|
|
|
+ return "";
|
|
}
|
|
}
|
|
|
|
|
|
- //氚云后端调用的方法名
|
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "invoke")
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 氚云后端调用的方法名
|
|
|
|
+ */
|
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "Invoke")
|
|
@ResponsePayload
|
|
@ResponsePayload
|
|
- public String Invoke(@RequestPayload Invoke invoke)
|
|
|
|
- {
|
|
|
|
|
|
+ public String invoke(@RequestPayload Invoke request) {
|
|
//书写调用第三方接口方法
|
|
//书写调用第三方接口方法
|
|
- return null;
|
|
|
|
|
|
+ return "";
|
|
}
|
|
}
|
|
}
|
|
}
|