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.



Reply via email to