On 7/24/07, smx_ <[EMAIL PROTECTED]> wrote:

Bruce,
Sorry, don't really understand intended interaction between ServiceMix and
Tomcat service...
In our original client we passed Java object to the method in web service

Request request = new Request( prop1, prop2...);
MyService port = ( new MyServiceLocator).getMyService();
Response response = port.MyRemoteMethod( request);

So, in ServiceMix client I have to call ServiceMix SU instead:

Destination destination =
client.createDestination("service:http://servicemix.org/myService";);
InOut exchange = destination.createInOutExchange();
NormalizedMessage request = exchange.getInMessage();
request.setProperty("prop1", "val1");
request.setProperty("prop2", "val2");
client.sendSync(exchange);
NormalizedMessage response = exchange.getOutMessage();

Do I need to write the SU code to construct Java request object from
NormalizedMessage and call MyRemoteMethod? Or, will the existing
http-binding component do it for me?

I'm a bit confused now. Based on what you described previously, you
have a web service for deployment in Tomcat. Are you trying to
refactor this web service to be deployed in ServiceMix instead of
Tomcat? Or are you trying to keep the web service deployed in Tomcat
and send messages to it from ServiceMix?

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to