You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Liav Ezer <li...@gmail.com> on 2008/12/29 15:42:20 UTC
How to make servicemix-http consumer to receive requests for a
variaty of services (not just one)?
Hi,
I deployed a servicemix-http component that suppose to consume SOAP request
from outside clients and provide a message to other component in the ESB
(RouterBuilder in Camel - not written yet).
For that i defined a consumer & a provider endpoints. My question regards
the consumer part:
I want the consumer connetctor to act as a 'servlet filter', meaning that it
will proxy all sort of services & requests which match a certain pattern
will be accepted while other will be rejected.
This is my xbean definitions - in bold is what i tried doing with no
success.
<!-- Receiver: Accept clients requests -->
<http:endpoint service="*"
endpoint="*"
targetService="*"
role="consumer"
locationURI="http://localhost:8192/services/httpreceiver/*"
wsdlResource="C:/HTTPReceiverServices/*.wsdl"
soap="true" />
Is it possible? Is it supported in such a component? Do i need to use other
approach to attake this problem?
Thanks.
--
View this message in context: http://www.nabble.com/How-to-make-servicemix-http-consumer-to-receive-requests-for-a-variaty-of-services-%28not-just-one%29--tp21204043p21204043.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to make servicemix-http consumer to receive requests for
a variaty of services (not just one)?
Posted by Freeman Fang <fr...@gmail.com>.
Liav Ezer wrote:
> Hi Freeman,
>
> Ok, i was refered by someone to the new servicemix-http endpoint called
> http:soap-consumer.
>
> I can add a ListedSoapConsumerMarshaler bean to it inorder to filter defined
> ip's from consuming my service.
>
> (reference to theis marshaler is at
> http://servicemix.apache.org/servicemix-http-new-endpoints.html)
>
> My question is: Can i use this marshaler in order to filter request matching
> a desired pattern in a URI:
>
> Such as http://liav:8192/Services/*
>
I don't think so.
The marshaler works provided the endpoint can receive the request, so
that you can add your logic to do some filter.
But in your case, I don't think the request to
http://liav:8192/esb/Marketing/ can reach http://liav:8192/esb/Services/.
Freeman
> Thanks.
>
> Freeman Fang wrote:
>
>> Hi,
>>
>> I don't think you can use "*" in locationURI or wsdlResource, both
>> servicemix-http or servicemix-cxf-bc need a specific locationURI or wsdl.
>> You need different endpoints for different services.
>> Freeman
>>
>> Liav Ezer wrote:
>>
>>> Hi Freeman,
>>>
>>> let's say that my domain is http://liav:8192/Services & under it i locate
>>> all wsdl files.
>>>
>>> I want to be able to filter it by the domain. Meaning that the following
>>> will be accepted:
>>>
>>> http://liav:8192/esb/Services/ForcastWeatherImp.wsdl
>>>
>>> & those will be rejected:
>>>
>>> http://liav:8192/esb/Marketing/DollarRateImp.wsdl
>>> http://liav:8192/esb/GetLocation.wsdl
>>>
>>> In other words my pattern is: http://liav:8192/esb/Services/*.wsdl
>>>
>>> Thanks.
>>>
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>
>>>
>>>> Hi,
>>>> Could you give more details what kind of pattern you want to filter?
>>>> If you want to filtered by username/password, both servicemix-http and
>>>> servicemix-cxf-bc can do it for you.
>>>> If you want to filtered by the content of the soap message, I think
>>>> servicemix-camel can do it for you.
>>>>
>>>> Freeman
>>>>
>>>> Liav Ezer wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I deployed a servicemix-http component that suppose to consume SOAP
>>>>> request
>>>>> from outside clients and provide a message to other component in the
>>>>> ESB
>>>>> (RouterBuilder in Camel - not written yet).
>>>>>
>>>>> For that i defined a consumer & a provider endpoints. My question
>>>>> regards
>>>>> the consumer part:
>>>>>
>>>>> I want the consumer connetctor to act as a 'servlet filter', meaning
>>>>> that
>>>>> it
>>>>> will proxy all sort of services & requests which match a certain
>>>>> pattern
>>>>> will be accepted while other will be rejected.
>>>>>
>>>>> This is my xbean definitions - in bold is what i tried doing with no
>>>>> success.
>>>>>
>>>>> <!-- Receiver: Accept clients requests -->
>>>>> <http:endpoint service="*"
>>>>> endpoint="*"
>>>>> targetService="*"
>>>>> role="consumer"
>>>>>
>>>>> locationURI="http://localhost:8192/services/httpreceiver/*"
>>>>> wsdlResource="C:/HTTPReceiverServices/*.wsdl"
>>>>> soap="true" />
>>>>>
>>>>> Is it possible? Is it supported in such a component? Do i need to use
>>>>> other
>>>>> approach to attake this problem?
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: How to make servicemix-http consumer to receive requests for a
variaty of services (not just one)?
Posted by Liav Ezer <li...@gmail.com>.
Hi Freeman,
Ok, i was refered by someone to the new servicemix-http endpoint called
http:soap-consumer.
I can add a ListedSoapConsumerMarshaler bean to it inorder to filter defined
ip's from consuming my service.
(reference to theis marshaler is at
http://servicemix.apache.org/servicemix-http-new-endpoints.html)
My question is: Can i use this marshaler in order to filter request matching
a desired pattern in a URI:
Such as http://liav:8192/Services/*
Thanks.
Freeman Fang wrote:
>
> Hi,
>
> I don't think you can use "*" in locationURI or wsdlResource, both
> servicemix-http or servicemix-cxf-bc need a specific locationURI or wsdl.
> You need different endpoints for different services.
> Freeman
>
> Liav Ezer wrote:
>> Hi Freeman,
>>
>> let's say that my domain is http://liav:8192/Services & under it i locate
>> all wsdl files.
>>
>> I want to be able to filter it by the domain. Meaning that the following
>> will be accepted:
>>
>> http://liav:8192/esb/Services/ForcastWeatherImp.wsdl
>>
>> & those will be rejected:
>>
>> http://liav:8192/esb/Marketing/DollarRateImp.wsdl
>> http://liav:8192/esb/GetLocation.wsdl
>>
>> In other words my pattern is: http://liav:8192/esb/Services/*.wsdl
>>
>> Thanks.
>>
>>
>>
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>> Could you give more details what kind of pattern you want to filter?
>>> If you want to filtered by username/password, both servicemix-http and
>>> servicemix-cxf-bc can do it for you.
>>> If you want to filtered by the content of the soap message, I think
>>> servicemix-camel can do it for you.
>>>
>>> Freeman
>>>
>>> Liav Ezer wrote:
>>>
>>>> Hi,
>>>>
>>>> I deployed a servicemix-http component that suppose to consume SOAP
>>>> request
>>>> from outside clients and provide a message to other component in the
>>>> ESB
>>>> (RouterBuilder in Camel - not written yet).
>>>>
>>>> For that i defined a consumer & a provider endpoints. My question
>>>> regards
>>>> the consumer part:
>>>>
>>>> I want the consumer connetctor to act as a 'servlet filter', meaning
>>>> that
>>>> it
>>>> will proxy all sort of services & requests which match a certain
>>>> pattern
>>>> will be accepted while other will be rejected.
>>>>
>>>> This is my xbean definitions - in bold is what i tried doing with no
>>>> success.
>>>>
>>>> <!-- Receiver: Accept clients requests -->
>>>> <http:endpoint service="*"
>>>> endpoint="*"
>>>> targetService="*"
>>>> role="consumer"
>>>>
>>>> locationURI="http://localhost:8192/services/httpreceiver/*"
>>>> wsdlResource="C:/HTTPReceiverServices/*.wsdl"
>>>> soap="true" />
>>>>
>>>> Is it possible? Is it supported in such a component? Do i need to use
>>>> other
>>>> approach to attake this problem?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-make-servicemix-http-consumer-to-receive-requests-for-a-variaty-of-services-%28not-just-one%29--tp21204043p21214592.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to make servicemix-http consumer to receive requests for
a variaty of services (not just one)?
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I don't think you can use "*" in locationURI or wsdlResource, both
servicemix-http or servicemix-cxf-bc need a specific locationURI or wsdl.
You need different endpoints for different services.
Freeman
Liav Ezer wrote:
> Hi Freeman,
>
> let's say that my domain is http://liav:8192/Services & under it i locate
> all wsdl files.
>
> I want to be able to filter it by the domain. Meaning that the following
> will be accepted:
>
> http://liav:8192/esb/Services/ForcastWeatherImp.wsdl
>
> & those will be rejected:
>
> http://liav:8192/esb/Marketing/DollarRateImp.wsdl
> http://liav:8192/esb/GetLocation.wsdl
>
> In other words my pattern is: http://liav:8192/esb/Services/*.wsdl
>
> Thanks.
>
>
>
>
> Freeman Fang wrote:
>
>> Hi,
>> Could you give more details what kind of pattern you want to filter?
>> If you want to filtered by username/password, both servicemix-http and
>> servicemix-cxf-bc can do it for you.
>> If you want to filtered by the content of the soap message, I think
>> servicemix-camel can do it for you.
>>
>> Freeman
>>
>> Liav Ezer wrote:
>>
>>> Hi,
>>>
>>> I deployed a servicemix-http component that suppose to consume SOAP
>>> request
>>> from outside clients and provide a message to other component in the ESB
>>> (RouterBuilder in Camel - not written yet).
>>>
>>> For that i defined a consumer & a provider endpoints. My question regards
>>> the consumer part:
>>>
>>> I want the consumer connetctor to act as a 'servlet filter', meaning that
>>> it
>>> will proxy all sort of services & requests which match a certain pattern
>>> will be accepted while other will be rejected.
>>>
>>> This is my xbean definitions - in bold is what i tried doing with no
>>> success.
>>>
>>> <!-- Receiver: Accept clients requests -->
>>> <http:endpoint service="*"
>>> endpoint="*"
>>> targetService="*"
>>> role="consumer"
>>>
>>> locationURI="http://localhost:8192/services/httpreceiver/*"
>>> wsdlResource="C:/HTTPReceiverServices/*.wsdl"
>>> soap="true" />
>>>
>>> Is it possible? Is it supported in such a component? Do i need to use
>>> other
>>> approach to attake this problem?
>>>
>>> Thanks.
>>>
>>>
>>
>>
>
>
Re: How to make servicemix-http consumer to receive requests for a
variaty of services (not just one)?
Posted by Liav Ezer <li...@gmail.com>.
Hi Freeman,
let's say that my domain is http://liav:8192/Services & under it i locate
all wsdl files.
I want to be able to filter it by the domain. Meaning that the following
will be accepted:
http://liav:8192/esb/Services/ForcastWeatherImp.wsdl
& those will be rejected:
http://liav:8192/esb/Marketing/DollarRateImp.wsdl
http://liav:8192/esb/GetLocation.wsdl
In other words my pattern is: http://liav:8192/esb/Services/*.wsdl
Thanks.
Freeman Fang wrote:
>
> Hi,
> Could you give more details what kind of pattern you want to filter?
> If you want to filtered by username/password, both servicemix-http and
> servicemix-cxf-bc can do it for you.
> If you want to filtered by the content of the soap message, I think
> servicemix-camel can do it for you.
>
> Freeman
>
> Liav Ezer wrote:
>> Hi,
>>
>> I deployed a servicemix-http component that suppose to consume SOAP
>> request
>> from outside clients and provide a message to other component in the ESB
>> (RouterBuilder in Camel - not written yet).
>>
>> For that i defined a consumer & a provider endpoints. My question regards
>> the consumer part:
>>
>> I want the consumer connetctor to act as a 'servlet filter', meaning that
>> it
>> will proxy all sort of services & requests which match a certain pattern
>> will be accepted while other will be rejected.
>>
>> This is my xbean definitions - in bold is what i tried doing with no
>> success.
>>
>> <!-- Receiver: Accept clients requests -->
>> <http:endpoint service="*"
>> endpoint="*"
>> targetService="*"
>> role="consumer"
>>
>> locationURI="http://localhost:8192/services/httpreceiver/*"
>> wsdlResource="C:/HTTPReceiverServices/*.wsdl"
>> soap="true" />
>>
>> Is it possible? Is it supported in such a component? Do i need to use
>> other
>> approach to attake this problem?
>>
>> Thanks.
>>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-make-servicemix-http-consumer-to-receive-requests-for-a-variaty-of-services-%28not-just-one%29--tp21204043p21213772.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to make servicemix-http consumer to receive requests for
a variaty of services (not just one)?
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Could you give more details what kind of pattern you want to filter?
If you want to filtered by username/password, both servicemix-http and
servicemix-cxf-bc can do it for you.
If you want to filtered by the content of the soap message, I think
servicemix-camel can do it for you.
Freeman
Liav Ezer wrote:
> Hi,
>
> I deployed a servicemix-http component that suppose to consume SOAP request
> from outside clients and provide a message to other component in the ESB
> (RouterBuilder in Camel - not written yet).
>
> For that i defined a consumer & a provider endpoints. My question regards
> the consumer part:
>
> I want the consumer connetctor to act as a 'servlet filter', meaning that it
> will proxy all sort of services & requests which match a certain pattern
> will be accepted while other will be rejected.
>
> This is my xbean definitions - in bold is what i tried doing with no
> success.
>
> <!-- Receiver: Accept clients requests -->
> <http:endpoint service="*"
> endpoint="*"
> targetService="*"
> role="consumer"
> locationURI="http://localhost:8192/services/httpreceiver/*"
> wsdlResource="C:/HTTPReceiverServices/*.wsdl"
> soap="true" />
>
> Is it possible? Is it supported in such a component? Do i need to use other
> approach to attake this problem?
>
> Thanks.
>