I double checked the servicenames. I do not have the targetservice
specified. Please find the xbean.xmls below.
HTTP-SU's xbean.xml
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
<http:endpoint service="testMe:DroolFinalService"
endpoint="httpEndPoint"
role="consumer"
locationURI="http://localhost:8195/TestDroolService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"/>
</beans>
Drool-SU's xbean.xml
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:drools="http://servicemix.apache.org/drools/1.0"
xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
<drools:endpoint service="testMe:DroolFinalService"
endpoint="DroolEndpoint"
ruleBaseResource="classpath:test1.drl" />
</beans>
-----Original Message-----
From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:07 AM
To: [email protected]
Subject: RE: How to test the drools component?
Mrudula,
First of all, verify that the namespaces and service names really match,
because even the smallest typo will cause this behavior. Do you still
have
the targetService attribute specified in your HTTP SU xbean.xml? If so,
have you added the namespace there?
Repost the xbean.xml files you have right now if you don't succeed in
solving it with the above questions/remarks...
Gert
mrudulam wrote:
>
>
> Hi Gert,
>
> As advised - I have created a SA which contains
> a) HTTP SU (containing xbean.xml)
> b) Drools SU (containing xbean.xml and test1.drl)
>
> However, when I invoke it in the browser using the location URI, I get
> the error - HTTP ERROR: 404, Unable to find requested resource
> (main.wsdl)
>
> There are no errors in the console and my test1.drl doesn't see to get
> executed. ( I have created the two endpoints with the same name and
> xmlns so that the drools endpoint can be directly exposed over http)
>
> Please advise where I could be going wrong.
>
> Regards,
> Mrudula
>
>
>
>
>
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 19, 2007 7:59 PM
> To: [email protected]
> Subject: RE: How to test the drools component?
>
>
> Mrudula,
>
> I don't think you need the targetService in this case. The Drools
> endpoint
> is an internal endpoint, the HTTP endpoint would only expose it to the
> outside world.
>
> Anyway, if you do specify it however, it should include the correct
> namespace as well, so it should say
> targetService="testMe:DroolFinalService".
>
> Gert
>
>
> mrudulam wrote:
>>
>> Hi Gert,
>>
>> Thanks for the reply. Please verify my understanding. I have listed
> the
>> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
> this
>> is what you meant. Also -if I have specified the targetService
> correctly.
>>
>> By this, when I access the url
http://localhost:8195/TestDroolService,
> I
>> should be able to invoke the test1.drl. Is that correct?
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>> <http:endpoint service="testMe:DroolFinalService"
>> endpoint="httpEndPoint"
>> role="consumer"
>>
> locationURI="http://localhost:8195/TestDroolService/"
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>> soap="true" targetService="DroolFinalService"/>
>> </beans>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>
>> <drools:endpoint service="testMe:DroolFinalService"
>> endpoint="DroolEndpoint"
>> ruleBaseResource="classpath:test1.drl" />
>> </beans>
>>
>> ________________________________
>>
>> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
>> Sent: Tue 6/19/2007 12:26 PM
>> To: [email protected]
>> Subject: Re: How to test the drools component?
>>
>>
>>
>>
>> L.S.,
>>
>>
>> In your case, your SA needs a
>> * HTTP SU, with an xbean.xml to define the consumer endpoint
>> * Drools SU, with an xbean.xml to define the drools endpoint
>>
>> I would recommend you to specify the same service name (including
>> namespace)
>> on both endpoints: that way you expose your drools endpoint to the
> outside
>> world using SOAP/HTTP directly.
>>
>>
>> Gert
>>
>>
>> mrudulam wrote:
>>>
>>>
>>>
>>> Hi,
>>>
>>> New to ServiceMix and exploring the drools component.
>>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
> the
>>> two.) After the Webservice is processed, I expect the drools
endpoint
> to
>>> be activated. (Pls see the xbean.xml configuration below) since I
> have
>>> given the targetService attribute. But nothing happens.
>>>
>>> Please tell me what is wrong with this approach.
>>>
>>> Also - is there any way to test the drools component independently?
>>>
>>> Regards,
>>> Mrudula
>>>
>>>
>>>
>>>
>>>
>>> xbean.xml of the HTTP Consumer SU is given below
>>>
>>>
>>>
>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>>
>>> <http:endpoint service="person:MulNumService"
>>> endpoint="soap"
>>> role="consumer"
>>> locationURI="http://localhost:8195/MulNumService/"
>>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>> soap="true" targetService="DroolFinalService"/>
>>> <drools:endpoint service="testMe:DroolFinalService"
>>> endpoint="endpoint"
>>> ruleBaseResource="classpath:test1.drl" />
>>> </beans>
>>>
>>>
>>> The information contained in this electronic message and any
> attachments
>>> to this message are intended for the exclusive use of the
> addressee(s)
>>> and
>>> may contain proprietary, confidential or privileged information. If
> you
>>> are not the intended recipient, you should not disseminate,
> distribute or
>>> copy this e-mail. Please notify the sender immediately and destroy
> all
>>> copies of this message and any attachments.
>>>
>>> WARNING: Computer viruses can be transmitted via email. The
recipient
>>> should check this email and any attachments for the presence of
> viruses.
>>> The company accepts no liability for any damage caused by any virus
>>> transmitted by this email.
>>>
>>> www.wipro.com
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>
>>
>>
>>
>> The information contained in this electronic message and any
> attachments
>> to this message are intended for the exclusive use of the
addressee(s)
> and
>> may contain proprietary, confidential or privileged information. If
> you
>> are not the intended recipient, you should not disseminate,
distribute
> or
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
> viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>
>> www.wipro.com
>>
>
> --
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
>
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
>
--
View this message in context:
http://www.nabble.com/Status-12029-tf3940060s12049.html#a11207420
Sent from the ServiceMix - User mailing list archive at Nabble.com.
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com