Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread Willem Jiang
Hi,

I guess you just want to create the proxy dynamically, maybe it is based on the 
request url or content, Am I right?

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On March 26, 2015 at 9:27:57 PM, ercan.canlier (ercan.canl...@gmail.com) wrote:
> Hi to everybody,
> First of all, many thanks for such a great framework that you implemented so
> far.
> It is extremely powerful and very fast. The documentation is quite in
> detail.
> I am implementing a web application for our integration tests.
> I need to track incoming / outcoming messages to database.
> For this, i can handle it via routing to bean and then show at my web page.
> I have already read tutorials about cxf proxy, also read some camel's book
> but things are not very clear.
> I implemented one example, seems i am close to the solution but it is not
> finished yet.
> From my point of view, if the client sends request to the frontend service
> which is proxy here, it should be forwarded to backend real service.
> For instance: When user sends request to
> http://localhost:8080/real-web-service, it must be forwarded to
> http://localhost:8081/backend-web-service, isnt proxy working like that? By
> forwarding the request, i must be able to track the messages.
> On the other hand, i will publish web services dynamically when the user
> load wsdl, how can i proxy them as well?
> Should i use jetty at front and match them according to forwarding
> properties? But like this, how can i proxy dynamically?
> I hope you do understand the scenario and might give me some tips.
> Thanks in advance.
> Ercan
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outcoming-messages-tp5764824.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  



Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread ercan.canlier
Hi Jiang,
Actually, there is a web application where you will have possibility to
publish web services.
Client will load wsdl file and then i will be generating it via maven with
help of camel.
This step is clear and i have already finished it but i also want to track
incoming and outgoing messages and log them to database. In order to do
that, i think the only way is to proxy the real services and define endpoint
consumers for them.
Do you have any idea?
Thanks for your interest.
Best regards.
Ercan



--
View this message in context: 
http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outcoming-messages-tp5764824p5764837.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread Willem Jiang
I think you can use CXF Interceptors[1][2] to trace the message[3], then you 
don’t need to build a proxy to interceptor all the message.
You can do some addition work base on CXF Logging Interceptor.

[1]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingInInterceptor.html
[2]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingOutInterceptor.html
[3]http://cxf.apache.org/docs/debugging-and-logging.html#DebuggingandLogging-LoggingMessages

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On March 26, 2015 at 10:29:09 PM, ercan.canlier (ercan.canl...@gmail.com) wrote:
> Hi Jiang,
> Actually, there is a web application where you will have possibility to
> publish web services.
> Client will load wsdl file and then i will be generating it via maven with
> help of camel.
> This step is clear and i have already finished it but i also want to track
> incoming and outgoing messages and log them to database. In order to do
> that, i think the only way is to proxy the real services and define endpoint
> consumers for them.
> Do you have any idea?
> Thanks for your interest.
> Best regards.
> Ercan
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outcoming-messages-tp5764824p5764837.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  



Re: Web Service Proxy to track incoming and outcoming messages

2015-03-27 Thread ercan.canlier
Thnak you Jiang, i will have a look.
Thanks again for your interest.
Best regards.
Ercan

2015-03-27 5:33 GMT+02:00 Willem.Jiang [via Camel] <
ml-node+s465427n5764872...@n5.nabble.com>:

> I think you can use CXF Interceptors[1][2] to trace the message[3], then
> you don’t need to build a proxy to interceptor all the message.
> You can do some addition work base on CXF Logging Interceptor.
>
> [1]
> https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingInInterceptor.html
> [2]
> https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingOutInterceptor.html
> [3]
> http://cxf.apache.org/docs/debugging-and-logging.html#DebuggingandLogging-LoggingMessages
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
> On March 26, 2015 at 10:29:09 PM, ercan.canlier ([hidden email]
> ) wrote:
>
> > Hi Jiang,
> > Actually, there is a web application where you will have possibility to
> > publish web services.
> > Client will load wsdl file and then i will be generating it via maven
> with
> > help of camel.
> > This step is clear and i have already finished it but i also want to
> track
> > incoming and outgoing messages and log them to database. In order to do
> > that, i think the only way is to proxy the real services and define
> endpoint
> > consumers for them.
> > Do you have any idea?
> > Thanks for your interest.
> > Best regards.
> > Ercan
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outcoming-messages-tp5764824p5764837.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outgoing-messages-tp5764824p5764872.html
>  To unsubscribe from Web Service Proxy to track incoming and outgoing
> messages, click here
> 
> .
> NAML
> 
>



-- 
Ercan CANLIER




--
View this message in context: 
http://camel.465427.n5.nabble.com/Web-Service-Proxy-to-track-incoming-and-outgoing-messages-tp5764824p5764918.html
Sent from the Camel - Users mailing list archive at Nabble.com.