<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">

	 <!-- Here is an example route which handles a request to the GetList method of the FlightCustomer BAPI 
	 	  to retrieve the list of Flight Customers within an SAP System. The request is handled from SAP via a 
	 	  synchronous RFC endpoint for the BAPI method which also sends back a response containing 
	 	  a list of Flight Customers. -->
	<camelContext xmlns="http://camel.apache.org/schema/spring">
	    <route>
	        <from uri="sap-srfc-server:quickstartServer:BAPI_FLCUST_GETLIST"/>
	        <log message="${body}" loggingLevel="INFO"/>
	        <to uri="bean:response"/>
	        <log message="${body}" loggingLevel="INFO"/>
	    </route>
	</camelContext>

	<!-- Instantiates a processor bean which builds a request to the GetList method of the FlightCustomer BAPI
	 	 and sets that request in the body of the exchange's message. -->
	<bean id="response" class="com.redhat.quickstarts.fuse.sap_srfc_server_spring_boot.CreateResponse"/>

</beans>
