This example to show how to use the XFIRE binding to expose the ServiceMix Components via SOAP.
This example uses Maven to download the needed
dependencies, build, and run the example. Please download and install
Maven before using this example.
To build and run the xfire binding example:
cd example/xfire-binding maven webserver
This will start an embedded webserver on port 8080 with the example
web application deployed.
The exposed services are located at:
"http://localhost:8080/Echo11Service?wsdl"
"http://localhost:8080/Echo12Service?wsdl"
2 Comments
Unknown User (lduchene)
There is an error in xfire-servlet.xml. The class of echoParent sould be 'org.codehaus.xfire.spring.remoting.XFireExporter'.
I have another error when I keep your property 'soapVersion' in echo12. Below here is my stdout:
java 2005-11-18 12:42:41,127 ERROR org.springframework.web.servlet.DispatcherServlet - Conte
xt initialization failed
java org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'o
rg.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource [
/WEB-INF/xfire-servlet.xml]: Can't resolve reference to bean 'echo12' while setting property 'urlMap
/Echo12Service'; nested exception is org.springframework.beans.factory.BeanCreationException: Erro
r creating bean with name 'echo12' defined in ServletContext resource /WEB-INF/xfire-servlet.xml:
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExce
ption: Invalid property 'soapVersion' of bean class [org.codehaus.xfire.spring.remoting.XFireExporte
r]: Bean property 'soapVersion' is not writable or has an invalid setter method: Does the parameter
type of the setter match the return type of the getter?
java org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'e
cho12' defined in ServletContext resource /WEB-INF/xfire-servlet.xml: Error setting property value
s; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'soa
pVersion' of bean class org.codehaus.xfire.spring.remoting.XFireExporter: Bean property 'soapVersi
on' is not writable or has an invalid setter method: Does the parameter type of the setter match the
return type of the getter?
java org.springframework.beans.NotWritablePropertyException: Invalid property 'soapVersion' of
bean class org.codehaus.xfire.spring.remoting.XFireExporter: Bean property 'soapVersion' is not w
ritable or has an invalid setter method: Does the parameter type of the setter match the return type
of the getter?
java at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:8
31)
Joseph Dennis O. Gapuz
- xfire-binding no longer included in [servicemix_install_dir]\examples\xfire-binding