Hi,
you can follow this tutorial:
http://servicemix.apache.org/6-intermediate-using-ejb-inside-servicemix.html
The EJB call (business logic) is made in a CXF-SE SU and exposed using HTTP.
In your case, you define a HTTP soap consumer with the xbean.xml looking
like:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:my="http://www.example.org">
<http:soap-consumer locationURI="http://0.0.0.0:8192/test"
service="my:service"
endpoint="public"
targetService="my:service"
targetEndpoint="business-logic"/>
</beans>
This HTTP soap consumer will expose the target WSDL and route incoming
soap envelope to the target.
This target is the CXF-SE endpoint with the following xbean.xml:
<beans xmlns:http="http://servicemix.apache.org/cxfse/1.0"
xmlns:my="http://www.example.org">
<cxfse:endpoint service="my:service" endpoint="business-logic">
<cxfse:pojo>
<bean class="my.example.PojoImpl"/>
</cxfse:pojo>
</cxfse:endpoint>
</beans>
where the PojoImpl class implements a Pojo interface annotated with
@WebService tags.
Regards
JB
billyNA82 wrote:
Hi all....
I have the following configuration:
1)servicemix-http as Binding Component
2)servicemix-cxf-se as Service Engine...
I want to achieve the following scenario:
A client invokes a web service deployed on ServiceMix.
I put The business of this web service in the servicemix-cxf-se.
This web service must change the data that It gets in the soap request and
it must invoke an external web service (this web service is not deployed on
servicemix)....
I know configure the soap consumer to receive the soap request from the
client, but I don't know how configure the service engine in order to invoke
the external web service...
Have you any idea????
Thank you....