ammachado commented on code in PR #15382:
URL: https://github.com/apache/camel/pull/15382#discussion_r1739925097


##########
components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceComponent.java:
##########
@@ -75,20 +75,19 @@ private void addConsumerConfiguration(
         if (type != null) {
             LOG.debug("Building Spring Web Services consumer of type {}", 
type);
             String lookupKey = getLookupKey(remaining, type);
+            configuration.setEndpointMappingType(type);
+            configuration.setEndpointMappingLookupKey(lookupKey);
             if (EndpointMappingType.BEANNAME.equals(type)) {
                 addEndpointDispatcherToConfiguration(configuration, lookupKey);
             } else {
                 addEndpointMappingToConfiguration(parameters, configuration);
+                if (type.equals(EndpointMappingType.XPATHRESULT)) {

Review Comment:
   You are correct, but this block will only execute if the branch where it is 
now is executed anyway, so I moved them together.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to