Hi,

I am trying to create the easiest drools routing of SOAP messages example.

At the moment i have 2 SUs:
service-router-su - from the maven archetype servicemix-drools-service-unit
service-router-http-su - from the maven archetype
servicemix-http-consumer-service-unit

I only want to send a SOAP message to the BC, and have it routed back to
another endpoint in the same BC no matter what.
So I have this rule:
rule "anything"
        when
                eval(true)
        then
                jbi.route( "service::test:httpprovider" );
end

in the BC I have 2 endpoints:
  <http:endpoint service="test:httplistener"
                 endpoint="listenerEndpoint"
                 role="consumer" 
                 locationURI="http://localhost:8192/servicerouter/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 targetService="test:servicerouter"
                 targetEndpoint="servicerouterEndpoint"
                 soap="true" />
   <http:endpoint service="test:httpprovider"
                 endpoint="providerEndpoint"
                 role="provider" 
                 locationURI="http://localhost:8080/testservice />

The drools endpoint is:
<drools:endpoint service="test:servicerouter"
                   endpoint="servicerouterEndpoint"
                   ruleBaseResource="classpath:router.drl"
                   namespaceContext="#nsContext" />

Now this is not really working, and there are a few things which I don't
understand.

Since the SOAP message is routed to a webservice outside of servicemix, how
would the drools SU expose teh WSDL of that service? What kind of SOAP
message do I have to write so that it gets recognized by drools and routed
forward to that other service?

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/SOAP-%2B-drools-problem-tp16537434p16537434.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to