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.

Reply via email to