I’m hitting a wall with this, currently I have two web-service endpoints configured and running in JBoss Soa 5 and as in ESB standard every endpoint is published as an individual operation.
One end-point for transaction submission:
<service description="writes Transactions to DB." name="TransactionsSubmit">
<listeners>
<jms-listener busidref="transactionSubmitChannel" name="transactionSubmit" />
</listeners>
<actions faultXsd="/resources/xsd/transactions-fault.xsd"
inXsd="/resources/xsd/ws-submit-trx.xsd"
mep="RequestResponse"
outXsd="/resources/xsd/ws-trx-response.xsd">
<action class="org.timo.service.SubmitTransaction">
</action>
</actions>
</service>
and other for error submission:
<service description="writes errors to DB." name="ErrorsSubmit">
<listeners>
<jms-listener busidref="errorSubmitChannel" name="errorSubmit" />
</listeners>
<actions faultXsd="/resources/xsd/transactions-fault.xsd"
inXsd="/resources/xsd/ws-errorsubmit-trx.xsd"
mep="RequestResponse"
outXsd="/resources/xsd/ws-errorsubmit-response.xsd">
<action class="org.timo.service.SubmitError">
</action>
</actions>
</service>
What I want to do is to create a custom web-service using my own WSDL file to publish these two operations in a single proxy service redirecting the flows to the already defined services ErrorsSubmit and TransactionsSubmit.
It’s possible to do this?
Note: I could deploy my own WSDL service by adding a WAR application to the ESB package, but I can’t redirect the flow to the internal services.
After several weeks I could find the way to do it. By default there is not a configurable way to redirect from a WS-operation to an ESB-service, but you can do it programmatically.
This is the WS-operation: