Java SOA Tutorials
Home
Tutorials
Java SOA
Tutorials
Java SOAXBean based servicemix http Binding
XBean-based servicemix-http Binding
For XBean-based deployment of servicemix-http, our xbean.xml matches the following:
Sample Code
- <beans xmlns:http="http://servicemix.apache.org/http/1.0"
- xmlns:test="http://AxisEndToEnd.axis.apache.binildas.com">
- <classpath>
- <location>.</location>
- </classpath>
- <http:endpoint service="test:IHelloWebService"
- endpoint="HelloWebService"
- role="provider"
- locationURI="http://localhost:8080/AxisEndToEnd/
- services/HelloWebService"
- soap="true"
- soapAction=""
- wsdlResource="http://localhost:8080/AxisEndToEnd/
- services/HelloWebService?WSDL" />
- <http:endpoint service="test:MyConsumerService"
- endpoint="HelloWebService"
- role="consumer"
- targetService="test:IHelloWebService"
- locationURI="http://localhost:8081/services/
- HelloWebService"
- soap="true"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-out" target="_blank" rel="nofollow"
- wsdlResource="http://localhost:8080/AxisEndToEnd/
- services/HelloWebService?WSDL" />
- </beans>
Copyright exforsys.com
The previous execution of ant has already built and packaged the service assembly for the sample.
Deploying and Running the Sample
To deploy the ServiceMix sample, we have the following servicemix.xml:
Sample Code
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
- xmlns:binil="http://www.binildas.com/voipservice" target="_blank" rel="nofollow">
- <bean id="propertyConfigurer"
- class="org.springframework.beans.factory.config.
- PropertyPlaceholderConfigurer">
- <property name="location"
- value="classpath:servicemix.properties" />
- </bean>
- <import resource="classpath:jmx.xml" />
- <import resource="classpath:jndi.xml" />
- <import resource="classpath:security.xml" />
- <import resource="classpath:tx.xml" />
- <sm:container id="jbi"
- MBeanServer="#jmxServer"
- useMBeanServer="true"
- createMBeanServer="true"
- rootDir="./wdir"
- installationDirPath="./install"
- deploymentDirPath="./deploy"
- flowName="seda">
- <sm:activationSpecs>
- </sm:activationSpecs>
- </sm:container>
- </beans>
Copyright exforsys.com
To bring up the ServiceMix, change directory to ch10\ServiceMixHttpBinding and execute the ServiceMix script as follows.
cd ch10\ServiceMixHttpBinding
%SERVICEMIX_HOME%\bin\servicemix servicemix.xml
We can now test our ServiceMix deployment by using the following test client:
ch10\ServiceMixHttpBinding\Client.html
Read Next: Access WSDL
Related Topics
Related Jobs
Comments
Weekly Offers
Sponsored Links
