Yes. First test the Ruby-based Web Service with a tool called SoapUI. If that testing proves the WS is ready to go then integrate with the ESB using something like the following:
<action name="soapui-client" class="org.jboss.soa.esb.actions.soap.SOAPUIClient"> <property name="wsdl" value="http://localhost:18080/active-bpel/services/RetailerCallback?wsdl"/> <property name="operation" value="SendSalesOrderNotification"/> <property name="paramsLocation" value="EXTRACTED_BEANS_HASH"/> </action>
More details on the soap ui action will be available soon. You can look at the webservice-bpel quickstart in 4.2MR2 as the first example. More will come.
Just to clarify... you wish to invoke a JRuby based webservice from the ESB? If so, it's as Burr has outlined there - use the SOAPUIClient action to make the invocation.
I would like to point out that that action implementation is something we're working on right now, so it will be more useful (and have better docs) by the end of this week.
Also, see this post.