Hi Willem,

I have registered my camel WebServices like you propose but fails to
access the webservice using the url

http://localhost:8181/cxf/pates/services/getAlias?wsdl

   <import resource="classpath:META-INF/cxf/cxf.xml" />
   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
   <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
   <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />

    <!-- WebServices -->
    <cxf:cxfEndpoint id="wsService"
                     address="pates/services/getAlias"
                     serviceClass="com.sfr.pates.GetAliasManager"/>

No error is displayed in the console of Karaf except that application
context is well started

09:18:30,154 | INFO  | ExtenderThread-6 | ContextLoaderListener
    | 72 - org.springframework.osgi.extender - 1.2.0 | Application
context successfully refreshed
(OsgiBundleXmlApplicationContext(bundle=routing,
config=osgibundle:/META-INF/spring/*.xml))


Regards,


Charles Moulliard

Sr. Principal Solution Architect - FuseSource
Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



On Wed, Feb 23, 2011 at 8:49 AM, Willem Jiang <[email protected]> wrote:
> Hi Charles,
>
> You can use the CXF osgi http transport to do this here is the example
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xmlns:cxf="http://camel.apache.org/schema/cxf";
>        xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
> ">
>
>    <import resource="classpath:META-INF/cxf/cxf.xml" />
>    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>    <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
>    <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>
>    <cxf:cxfEndpoint id="wsService"
>                       address="services/getAlias"
>                       serviceClass="com.sfr.pates.GetAliasManager"/>
>
> ...
>   You should be access the service from
> "http://localhost:8081/cxf/services/getAlias";
>
> Willem
>
>
>
> On 2/23/11 2:47 PM, Charles Moulliard wrote:
>>
>> Hi,
>>
>> Is there a way to configure the camel-cxf component to register the
>> path for the WebService (= wsdl) under an existing instance of a Web
>> Application Server instead of creating a Jetty Server with the URL
>> address defined in the<cxf:cxfEndpoint address=""/>
>>
>> WORK
>>
>>     <!-- WebServices -->
>>     <cxf:cxfEndpoint id="wsService"
>>
>>  address="http://localhost:9090/pates/services/getAlias";
>>                      serviceClass="com.sfr.pates.GetAliasManager"/>
>>
>> DOES NORT WORK
>>
>>     <!-- WebServices -->
>>     <cxf:cxfEndpoint id="wsService"
>>                      address="services/getAlias"
>>                      serviceClass="com.sfr.pates.GetAliasManager"/>
>>
>> Regards,
>>
>>
>> Charles Moulliard
>>
>> Sr. Principal Solution Architect - FuseSource
>> Apache Committer
>>
>> Blog : http://cmoulliard.blogspot.com
>> Twitter : http://twitter.com/cmoulliard
>> Linkedin : http://www.linkedin.com/in/charlesmoulliard
>> Skype: cmoulliard
>>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>         http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
>

Reply via email to