You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Wayne Keenan <wa...@gmail.com> on 2010/03/12 13:45:38 UTC

Virtual/Proxy WebService component (request?) R

Hi,


I have backend SCA components that is implemented in Java and the WSDL is
automatically generated by the Apache Tuscany SCA container.

I would like to be able to front access to my backend services using Camel.

For this to function I would like to know it its possible to configure a
(the CXF?) component to advertise the SCA generated WSDL (modifying the
endpoint ports so not to expose the backed endpoint directly) and route thru
Camel to the backend service.  Thus, I could redirect/loadbalance or what
ever without effecgting the client,

Basically I want todo what Apache Synapse can do, but in Camel:
http://wso2.org/library/189

It would be good if the component could do WSDL loading lazyly to account
for situations whereby the SCA service has not started when the Camel route
is started. (Like I have now :) )



All the best,
Wayne

Re: Virtual/Proxy WebService component (request?) R

Posted by Wayne Keenan <wa...@gmail.com>.
Hi,

sorry that sounded like they have it why don't you...

if I wanted to 'borrow' the code from Synapse, please could you suggest a
Camel component that might be a good point to start from.   CXF may on the
surfaace be obvious, but without looking at it and knowing Synapse uses
Axis2 I already feel like I'm up against it...

Regards
Wayne

On Fri, Mar 12, 2010 at 2:16 PM, Wayne Keenan <wa...@gmail.com>wrote:

> Hi,
>
> I tried the jetty/http combo but dont like the fact the WSDL service URL to
> the SCA component 'leaked' straight thru verbatim.
>
> The real client will be a b2b gateway that wont consume the WSDL directly,
> so not a problem.  But for dev/testing I would like SOAPui to use the Camel
> fronted endpoint and not be given the backend endpoint serivce URL.
>
> The Synapse proxy rewrites the service endpoint.
>
> Regards
> Wayne
>
>
> On Fri, Mar 12, 2010 at 1:01 PM, Willem Jiang <wi...@gmail.com>wrote:
>
>> Hi,
>>
>> Does you client need to use the service WSDL to generate the question
>> message?
>> If so, I'm afraid you still need to let camel-cxf know about the WSDL or
>> generate the artifact with WSDL.
>> Otherwise, you can leverage the camel-jetty and camel-http component to
>> route the request to backend system.
>>
>> Willem
>>
>>
>>
>> Wayne Keenan wrote:
>>
>>> Hi,
>>>
>>>
>>> I have backend SCA components that is implemented in Java and the WSDL is
>>> automatically generated by the Apache Tuscany SCA container.
>>>
>>> I would like to be able to front access to my backend services using
>>> Camel.
>>>
>>> For this to function I would like to know it its possible to configure a
>>> (the CXF?) component to advertise the SCA generated WSDL (modifying the
>>> endpoint ports so not to expose the backed endpoint directly) and route
>>> thru
>>> Camel to the backend service.  Thus, I could redirect/loadbalance or what
>>> ever without effecgting the client,
>>>
>>> Basically I want todo what Apache Synapse can do, but in Camel:
>>> http://wso2.org/library/189
>>>
>>> It would be good if the component could do WSDL loading lazyly to account
>>> for situations whereby the SCA service has not started when the Camel
>>> route
>>> is started. (Like I have now :) )
>>>
>>>
>>>
>>> All the best,
>>> Wayne
>>>
>>>
>>
>

Re: Virtual/Proxy WebService component (request?) R

Posted by Wayne Keenan <wa...@gmail.com>.
Hi,

I tried the jetty/http combo but dont like the fact the WSDL service URL to
the SCA component 'leaked' straight thru verbatim.

The real client will be a b2b gateway that wont consume the WSDL directly,
so not a problem.  But for dev/testing I would like SOAPui to use the Camel
fronted endpoint and not be given the backend endpoint serivce URL.

The Synapse proxy rewrites the service endpoint.

Regards
Wayne

On Fri, Mar 12, 2010 at 1:01 PM, Willem Jiang <wi...@gmail.com>wrote:

> Hi,
>
> Does you client need to use the service WSDL to generate the question
> message?
> If so, I'm afraid you still need to let camel-cxf know about the WSDL or
> generate the artifact with WSDL.
> Otherwise, you can leverage the camel-jetty and camel-http component to
> route the request to backend system.
>
> Willem
>
>
>
> Wayne Keenan wrote:
>
>> Hi,
>>
>>
>> I have backend SCA components that is implemented in Java and the WSDL is
>> automatically generated by the Apache Tuscany SCA container.
>>
>> I would like to be able to front access to my backend services using
>> Camel.
>>
>> For this to function I would like to know it its possible to configure a
>> (the CXF?) component to advertise the SCA generated WSDL (modifying the
>> endpoint ports so not to expose the backed endpoint directly) and route
>> thru
>> Camel to the backend service.  Thus, I could redirect/loadbalance or what
>> ever without effecgting the client,
>>
>> Basically I want todo what Apache Synapse can do, but in Camel:
>> http://wso2.org/library/189
>>
>> It would be good if the component could do WSDL loading lazyly to account
>> for situations whereby the SCA service has not started when the Camel
>> route
>> is started. (Like I have now :) )
>>
>>
>>
>> All the best,
>> Wayne
>>
>>
>

Re: Virtual/Proxy WebService component (request?) R

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

Does you client need to use the service WSDL to generate the question 
message?
If so, I'm afraid you still need to let camel-cxf know about the WSDL or 
generate the artifact with WSDL.
Otherwise, you can leverage the camel-jetty and camel-http component to 
route the request to backend system.

Willem


Wayne Keenan wrote:
> Hi,
> 
> 
> I have backend SCA components that is implemented in Java and the WSDL is
> automatically generated by the Apache Tuscany SCA container.
> 
> I would like to be able to front access to my backend services using Camel.
> 
> For this to function I would like to know it its possible to configure a
> (the CXF?) component to advertise the SCA generated WSDL (modifying the
> endpoint ports so not to expose the backed endpoint directly) and route thru
> Camel to the backend service.  Thus, I could redirect/loadbalance or what
> ever without effecgting the client,
> 
> Basically I want todo what Apache Synapse can do, but in Camel:
> http://wso2.org/library/189
> 
> It would be good if the component could do WSDL loading lazyly to account
> for situations whereby the SCA service has not started when the Camel route
> is started. (Like I have now :) )
> 
> 
> 
> All the best,
> Wayne
> 


Re: Virtual/Proxy WebService component (request?) R

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can proxy endpoints / routes in Camel
http://camel.apache.org/using-camelproxy.html



On Fri, Mar 12, 2010 at 1:45 PM, Wayne Keenan <wa...@gmail.com> wrote:
> Hi,
>
>
> I have backend SCA components that is implemented in Java and the WSDL is
> automatically generated by the Apache Tuscany SCA container.
>
> I would like to be able to front access to my backend services using Camel.
>
> For this to function I would like to know it its possible to configure a
> (the CXF?) component to advertise the SCA generated WSDL (modifying the
> endpoint ports so not to expose the backed endpoint directly) and route thru
> Camel to the backend service.  Thus, I could redirect/loadbalance or what
> ever without effecgting the client,
>
> Basically I want todo what Apache Synapse can do, but in Camel:
> http://wso2.org/library/189
>
> It would be good if the component could do WSDL loading lazyly to account
> for situations whereby the SCA service has not started when the Camel route
> is started. (Like I have now :) )
>
>
>
> All the best,
> Wayne
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus