You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by ajayk_goel <aj...@hotmail.com> on 2006/12/12 16:09:15 UTC

Adding another service to the soap-binding sample

How can I add another service engine to the soap-binding sample.  Intead of
returning the response from SimpleService I want to be able to create a new
exchange, put it on the BUS, be picked by another SE, have the SimpleService
construct the response from the returned message.   I am doing what the
document says but I am getting error "ServiceName (NewBC) specified for
routing, but can't find it registered".  However I can see my service
"NewBC" in jConsole

InOut exchange = client.createInOutExchange();
NormalizedMessage inMessage = exchange.getInMessage();
inMessage.setProperty("Name", "James");
QName service = new QName("", "NewBC");
exchange.setService(service);
client.sendSync(exchange);

-- 
View this message in context: http://www.nabble.com/Adding-another-service-to-the-soap-binding-sample-tf2808021s12049.html#a7834873
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Re: Adding another service to the soap-binding sample

Posted by ajayk_goel <aj...@hotmail.com>.
I used the servicemix file (instead of the xbean.xml) to have http:endpoint,
jsr181:endpoint and my new binding component.  I could specify the
destination service right in the servicemix file and I could successfully do
what I wanted to :) 


ajayk_goel wrote:
> 
> How can I add another service engine to the soap-binding sample.  Intead
> of returning the response from SimpleService I want to be able to create a
> new exchange, put it on the BUS, be picked by another SE, have the
> SimpleService construct the response from the returned message.   I am
> doing what the document says but I am getting error "ServiceName (NewBC)
> specified for routing, but can't find it registered".  However I can see
> my service "NewBC" in jConsole
> 
> InOut exchange = client.createInOutExchange();
> NormalizedMessage inMessage = exchange.getInMessage();
> inMessage.setProperty("Name", "James");
> QName service = new QName("", "NewBC");
> exchange.setService(service);
> client.sendSync(exchange);
> 
> 

-- 
View this message in context: http://www.nabble.com/Adding-another-service-to-the-soap-binding-sample-tf2808021s12049.html#a7842355
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.