Skip to content

Instantly share code, notes, and snippets.

@akkida746
Created October 17, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkida746/08f23aa15c972ad5d5fe3b89cc6bd8ca to your computer and use it in GitHub Desktop.
Save akkida746/08f23aa15c972ad5d5fe3b89cc6bd8ca to your computer and use it in GitHub Desktop.
Adding SOAP Handler in Web Serivce Endpoint in Apache CXF
<?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:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<jaxws:endpoint xmlns:tns="http://microsretail.com/Locate"
id="locate" implementor="com.godiva.ws.LocatePortImpl" wsdlLocation="wsdl/LocateServices.wsdl"
endpointName="tns:LocatePort" serviceName="tns:LocateService" address="/LocatePort">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
<jaxws:handlers>
<bean class="com.godiva.soapHandler.SoapHandler" />
</jaxws:handlers>
</jaxws:endpoint>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment