We exported an ESB service as a web service in the previous section. Let us now invoke that web service with another ESB service.
In JBoss Developer Studio, open the
esbcontent/META-INF/jboss-esb.xml
file in Source mode.Append the following
service
definition to the<services>
tag.<service category="Chapter8Sample" description="" name="Chapter8WSClient"> <listeners> <jms-listener busidref="Chapter8EsbChannel2" name="Chapter8EsbListener"/> </listeners> <actions mep="RequestResponse"> <action name="requestAction" class="org.jboss.soa.esb.samples.chapter8.MyRequestAction"/> <action class="org.jboss.soa.esb.actions.soap.SOAPClient" name="soapui-client-action"> <property name="wsdl" value="http://localhost:8080/Chapter8/ebws/Chapter8Sample/Chapter8Service?wsdl"/> <property name="SOAPAction" value="Chapter8ServiceOp"/> <...