88424b2860987c653a92c057ab255021f655815d
[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.parent.auto.ParentEnumType;
10 import de.spring.webservices.server.auto.CustomBindingExampleRequest;
11 import de.spring.webservices.server.auto.CustomBindingExampleResponse;
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 }