Skip to content

Instantly share code, notes, and snippets.

View gnanagurus's full-sized avatar

Gnanaguru gnanagurus

View GitHub Profile
@gnanagurus
gnanagurus / camel-context.xml
Created November 12, 2015 09:43
Strip off the SOAP envelope
<from uri="cxf:bean:geo-service-endpoint" />
<!-- This removes soap envelope - this is not required if cxf dataformat is PAYLOAD -->
<setBody id="soap-unwrapper"><xpath>//geo:GeoServiceRequest</xpath></setBody>
<convertBodyTo type="String" />
@gnanagurus
gnanagurus / camel-context.xml
Created November 12, 2015 09:42
Expose Web Service endpoint
<route id="geocoder-service-callout">
<from uri="cxf:bean:geo-service-endpoint" />
@gnanagurus
gnanagurus / beans-config.xml
Created November 12, 2015 09:40
Define CXF endpoint
<cxf:cxfEndpoint id="geo-service-endpoint"
address="http://127.0.0.1:8181/camel/geo-service/"
wsdlURL="wsdl/geo-service.wsdl"
serviceName="gs:geo-service"
endpointName="gs:geo-serviceSOAP"
xmlns:gs="http://www.bushorn.com/camel/geo-service/">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE" />
</cxf:properties>
</cxf:cxfEndpoint>