Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
- xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"
- xsi:schemaLocation="
- http://www.osgi.org/xmlns/blueprint/v1.0.0
- http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
- http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
- http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
- http://camel.apache.org/schema/blueprint
- http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
- http://camel.apache.org/schema/blueprint/cxf
- http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd">
- <bean id="calculatePayloadProcessor" class="org.example.calculatorws.camel.processor.CalculatePayloadProcessor" />
- <cxf:cxfEndpoint id="calculatorWS" wsdlURL="calculatorWS.wsdl" address="/calculatorWS"/>
- <camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint">
- <dataFormats>
- <jaxb id="jaxbFormat" prettyPrint="true" contextPath="org.example.calculatorws"/>
- </dataFormats>
- <route>
- <from uri="cxf:bean:calculatorWS?dataFormat=PAYLOAD"/>
- <log message="Request Body ${in.body}"/>
- <log message="Request Headers ${in.headers}"/>
- <choice>
- <when>
- <simple>${in.header.operationName} == 'calculate'</simple>
- <unmarshal ref="jaxbFormat"/>
- <to uri="bean:calculatePayloadProcessor"/>
- <log message="Response Body ${in.body}"/>
- <log message="Response Headers ${in.headers}"/>
- <transform>
- <simple><![CDATA[${in.body}]]></simple>
- </transform>
- </when>
- </choice>
- </route>
- </camelContext>
- </blueprint>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement