1 package de.spring.webservices.services.impl;
3 //import java.util.ArrayList;
4 //import java.util.List;
6 import org.springframework.stereotype.Service;
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;
16 @Service("customBindingExampleService")
17 public class CustomBindingExampleServiceImpl implements
18 Operations.RequestResponse<CustomBindingExampleResponse, CustomBindingExampleRequest> {
22 public CustomBindingExampleResponse requestResponse(final CustomBindingExampleRequest request) {
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.");
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);
36 CustomBindingExampleResponse response = new CustomBindingExampleResponse();
38 response.setData("CUSTOM BINDING SNAKE EYES AND " + request.getData());
39 response.setParentEnum(ParentEnumType.FIRST);