I have a web service that was exposed using a combination of Spring and JAX-WS. I've managed to convert it to a POJO and expose it using Spring Integration as a service activator behind a web service inbound gateway that is set as a default endpoint for UriEndpointMapping. Since there are other legacy web services that need to be exposed, I've changed the inbound gateway from the default endpoint to a different mapping. Unfortunately, this change makes the spring-integration service unreachable. I've tried mapping it by url and by endpoint designation, to no effect. Here is the relevant xml and code - am I just missing something?
<int-ws:inbound-gateway id="reconGateway" request-channel="recon-input" marshaller="marshaller" unmarshaller="marshaller"/>
<int:service-activator method="saveArrangementApplicationDetails" input-channel="recon-input">
<bean id="arrangementApplicationReconService" class="package.ArrangementApplicationReconServiceImpl">
<constructor-arg ref="reconServiceHelper"/>
</bean>
</int:service-activator>
<bean class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping">
<property name="mappings">
<props>
<prop key="http://localhost:8081/intfacade-web/reconService">reconGateway</prop>
</props>
</property>
</bean>
ArrangementApplicationReconServiceImpl.java
public class ArrangementApplicationReconServiceImpl {
public ArrangementApplicationReconResponse saveArrangementApplicationDetails(
ArrangementApplicationReconRequest request)
throws AOSFaultException {
String traceId = request.getAosRequestHeader().getTraceId();
LOGGER.info("548A456D3AED4CF6917B8E238750A0FD - processing recon request trace id: " + traceId + " synchronously");
ArrangementApplicationReconResponse response = new ArrangementApplicationReconResponse();
AOSResponseHeader aosHeader = new AOSResponseHeader();
aosHeader.setTraceId(traceId);
response.setAosResponseHeader(aosHeader);
long result = 0L;
if (null == request.getApplicationId()) {
result = reconServiceHelper.saveArrangementApplicationDetails(request.getArrangementApplicationContainer(),
request.getDecisionType());
} else {
result = reconServiceHelper.saveArrangementApplicationDetails(request.getArrangementApplicationContainer(),
request.getDecisionType(), request.getApplicationId());
}
response.setApplicationId(result);
return response;
}
}