Expand|Select|Wrap|Line Numbers
- <?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"
- xmlns:soap="http://cxf.apache.org/bindings/soap"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://cxf.apache.org/bindings/soap
- http://cxf.apache.org/schemas/configuration/soap.xsd
- http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd">
- <bean id="getAccountImpl" class="GetAccountImpl"
- parent="webserviceImplParent" />
- <bean id="ServerPasswordCallback" class="path of ServerPasswordCallback" />
- <jaxws:endpoint xmlns:tns="end point URL"
- id="getAccount" implementor="#getAccountImpl"
- wsdlLocation="location of the WSDl"
- endpointName="tns:GetAccountPort" serviceName="tns:GetAccountService"
- address="http://WS_IRA_HOST:WS_IRA_PORT/getaccount">
- <jaxws:inInterceptors>
- <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
- <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
- <constructor-arg>
- <map>
- <entry key="action" value="UsernameToken" />
- <entry key="passwordType" value="PasswordText" />
- <entry key="passwordCallbackClass" value="path of ServerPasswordCallback" />
- </map>
- </constructor-arg>
- </bean>
- </jaxws:inInterceptors>
- </jaxws:endpoint>
- </beans>
here all the necessary packages are imported as well as exported and . jar files are included in .bnd class.
after up my server i will get error as:-
Caused by: org.springframe work.beans.Fata lBeanException: Class [org.apache.cxf. bus.spring.Name spaceHandler] for namespace [http://cxf.apache.org/core] does not implement the [org.springframe work.beans.fact ory.xml.Namespa ceHandler] interface
at org.springframe work.beans.fact ory.xml.Default NamespaceHandle rResolver.resol ve(DefaultNames paceHandlerReso lver.java:126)
at org.eclipse.gem ini.blueprint.c ontext.support. DelegatedNamesp aceHandlerResol ver.resolve(Del egatedNamespace HandlerResolver .java:55)
at org.springframe work.beans.fact ory.xml.BeanDef initionParserDe legate.parseCus tomElement(Bean DefinitionParse rDelegate.java: 1333)
at org.springframe work.beans.fact ory.xml.BeanDef initionParserDe legate.parseCus tomElement(Bean DefinitionParse rDelegate.java: 1328)
at org.springframe work.beans.fact ory.xml.Default BeanDefinitionD ocumentReader.p arseBeanDefinit ions(DefaultBea nDefinitionDocu mentReader.java :135)
at org.springframe work.beans.fact ory.xml.Default BeanDefinitionD ocumentReader.r egisterBeanDefi nitions(Default BeanDefinitionD ocumentReader.j ava:93)
at org.springframe work.beans.fact ory.xml.XmlBean DefinitionReade r.registerBeanD efinitions(XmlB eanDefinitionRe ader.java:493)
at org.springframe work.beans.fact ory.xml.XmlBean DefinitionReade r.doLoadBeanDef initions(XmlBea nDefinitionRead er.java:390)