Hi Lilas,
I have written a small example for this case. You can find it at:
http://www.liquid-reality.de/main/projects/servicemix
It is a fully running example of a pojo client calling a pojo service.
Please write back if it worked for you or if you have any suggestions
how to improve the sample.
Regards
Christian
lilas schrieb:
Hi Bruce, thx for the reply. This is my basic xbean.xml file of my
destination jsr181 service:
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
<classpath>
<location>.</location>
</classpath>
<jsr181:endpoint pojoClass="org.servicemix.test.HelloImpl"
wsdlResource="classpath:service.wsdl" />
</beans>
and this is a fragment of the Java code I wrote to forward a
NormalizedMessage to the service implemented by
org.servicemix.test.HelloImpl.
EndpointDeliveryChannel channel;
channel = (EndpointDeliveryChannel) context.getDeliveryChannel();
ServiceEndpoint se = context.getEndpoint( new
QName(reference),
port);
InOut exch =
channel.createExchangeFactory(se).createInOutExchange();
context.getDeliveryChannel().sendSync(exch);
NormalizedMessage outMessage = exch.getOutMessage();
1- In the documentation I don't see any targetService/targetEndpoint in the
properties of a jsr181 su xbean deployement file. Could you tell me how can
I change my xbean to target the service above (I must implement
MessageExchangeListner to process the message isn't it?).
2- In fact the scenario I have in my mind is the following :
-call from an external soap client an operation from an exposed jsr181
service via HTTP BC.
-this operation should call another one defined in another jsr181 but
without HTTP BC (internally)
So how can I setup this?
Thanks a lot.
Regards,
Khalil.
--
Christian Schneider
---
http://www.liquid-reality.de