0247a3f7eb4d15bbb7387283caf3a3ef466b254f
[SpringWebServicesForFun/.git] /
1 package de.spring.webservices.services.impl;
2
3 //import java.util.ArrayList;
4 //import java.util.List;
5
6 import org.springframework.stereotype.Service;
7
8 import de.spring.webservices.operations.Operations;
9 import de.spring.webservices.server.auto.CustomBindingExampleRequest;
10 import de.spring.webservices.server.auto.CustomBindingExampleResponse;
11 import de.spring.webservices.server.auto.ParentEnumType;
12 //import de.spring.webservices.exceptions.BusinessException;
13 //import de.spring.webservices.exceptions.CustomBusinessException;
14
15
16 @Service("customBindingExampleService")
17 public class CustomBindingExampleServiceImpl implements
18         Operations.RequestResponse<CustomBindingExampleResponse, CustomBindingExampleRequest> {
19
20         
21         @Override
22     public CustomBindingExampleResponse requestResponse(final CustomBindingExampleRequest request) {
23                 
24                 
25                 // Example about how works org.springframework.ws.soap.server.endpoint.SoapFaultMappingExceptionResolver
26                 // see soap-ws.xml Spring configuration file.
27 //              throw new BusinessException("This feature has not been implemented yet.");
28                 
29                 // Example about how works de.spring.webservices.endpoints.MyCustomMappingExceptionResolver
30                 // see soap-ws.xml Spring configuration file.
31 //              List<String> arguments = new ArrayList<>();
32 //              arguments.add("ARGUMENT 1");
33 //              arguments.add("ARGUMENT 2");
34 //              throw new CustomBusinessException("This feature has not been implemented yet.", arguments);
35                 
36         CustomBindingExampleResponse response = new CustomBindingExampleResponse();
37
38         response.setData("CUSTOM BINDING SNAKE EYES AND " + request.getData());
39         response.setParentEnum(ParentEnumType.FIRST);
40
41         return response;
42     }
43
44 }