...
Adding parent's element to generated pom.xml
We must to specify parent of this project. So, we add this to generated pom.xml.
No Format |
---|
<parent> <artifactId>parent</artifactId> <groupId>org.apache.servicemix.tutorial</groupId> <version>1.0-SNAPSHOT</version> </parent> |
Editing service.wsdl to provide our service
We must edit WSDL file service.wsdl in src/main/resources directory to provide our service. Here is example for method hello.
No Format |
---|
Configuring xbean.xml
Next, we will have to configure our new SU to really provide some services. We do this by creating a file named xbean.xml in the src/main/resources directory of our my-cxf-bc-su module. We must fill in it according to service.wsdl. Here is example for our service.wsdl.
No Format |
---|
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:hello="http://servicemix.apache.org/samples/hello">
<cxfbc:consumer wsdl="classpath:service.wsdl"
targetService="hello:HelloService"
targetInterface="hello:Hello"/>
</beans>
|
Next, we are going to create our service .wsdlassembly.
Things to remember
- In ServiceMix, most service units will be configured by a file named xbean.xml
...