1 package de.spring.webservices.services.impl;
3 //import java.util.ArrayList;
4 //import java.util.List;
6 import org.springframework.stereotype.Service;
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;
18 @Service("customBindingExampleService")
19 public class CustomBindingExampleServiceImpl implements
20 Operations.RequestResponse<CustomBindingExampleResponse, CustomBindingExampleRequest> {
24 public CustomBindingExampleResponse requestResponse(final CustomBindingExampleRequest request) {
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.");
31 // Example about how works de.spring.webservices.endpoints.MyCustomExceptionResolver
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);
38 CustomBindingExampleResponse response = new CustomBindingExampleResponse();
40 response.setData("CUSTOM BINDING SNAKE EYES AND " + request.getData());
41 response.setParentEnum(ParentEnumType.FIRST);