1 package de.spring.webservices.services.impl;
3 import org.springframework.stereotype.Service;
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;
12 @Service("customBindingExampleService")
13 public class CustomBindingExampleServiceImpl implements
14 Operations.RequestResponse<CustomBindingExampleResponse, CustomBindingExampleRequest> {
18 public CustomBindingExampleResponse requestResponse(final CustomBindingExampleRequest request) {
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.");
25 CustomBindingExampleResponse response = new CustomBindingExampleResponse();
27 response.setData("CUSTOM BINDING SNAKE EYES AND " + request.getData());
28 response.setParentEnum(ParentEnumType.FIRST);