Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You simply need to set your service class and your service's URL on the bean. Calling create() will then create a proxy for you based on your interface.

Configure with Spring

The XML configuration for do-it-yourself Spring beans and cxf.xml or cxf-servlet.xml

...

are all very similiar.
The simple front-end does not have its own extension, so you don't need any extra imports if are setting up your
own application context.

Here's an example If you want to deploy the server to a container, you need to configure the cxf-servlet.xml. If you use your own application context, you'll need to import the soap extension.

Code Block
xml
xml
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:simple="http://cxf.apache.org/simple"
      xmlns:soap="http://cxf.apache.org/bindings/soap"
      xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">

  <simple:server id="pojoservice" serviceClass="demo.hw.server.HelloWorld" address="/hello_world">
  	<simple:serviceBean>
  		<bean class="demo.hw.server.HelloWorldImpl" />
  	</simple:serviceBean>
  </simple:server>
</beans>

...