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