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