Freeman Fang wrote:
> 
> 
> On 2010-6-9, at 上午4:05, Amigo_ wrote:
> 
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> My comment inline
>>> On 2010-6-8, at 上午1:35, Amigo_ wrote:
>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> For SMX4.x (OSGi container), you shouldn't put context="context"  
>>>>> for
>>>>> cxfse:proxy, the proxy will create it automatically for you,
>>>>> SMXCOMP-683[1] track this issue.
>>>>> You should use latest released SMX4.2 to use this new feature.
>>>>>
>>>>> [1]https://issues.apache.org/activemq/browse/SMXCOMP-683
>>>>>
>>>>> Freeman
>>>>>
>>>>
>>>> Hi,
>>>>
>>>> I downloaded FUSE ESB / Apache ServiceMix 4.2 from this site
>>>> http://fusesource.com/downloads/ and after removing context
>>>> parameter I got
>>>> error about not finding context:
>>> The one you download is FUSE ESB 4.2 and it didn't pick up fix for
>>> SMXCOMP-683 yet.
>>> You should download apache servicemix4.2 from [1]
>>>
>>> [1]http://repo2.maven.org/maven2/org/apache/servicemix/apache-servicemix/4.2.0/
>>>
>>> Freeman
>>>
>>
>> Hi, thanks for reply.
>>
>> I installed new version, but it still doesn't work ... Now I have  
>> got an
>> error about not having configuration
>> META-INF/cxf/transport/jbi/cxf-transport-jbi.xml . I've done some
>> researching over internet but haven't found any similar problems.
>>
>> I thought that it could be caused by not having some bundle, but I  
>> have
>> installed this bundle which should ensure that:
>> [ 123] [Active     ] [            ] [       ] [   60] Apache CXF  
>> Runtime JBI
>> Transport (2.2.6)
>>
> 
> Hi,
> 
> A quick question, did you already import-package META-INF.cxf in your  
> pom.xml?
> 
> Freeman
> 

Hi,

Yes, I did. Maybe in this early version os servicemix sth required is
missing?

I've spent a huge amount of time on this issue and it still doesn't work. Is
there is any easier way to invoke web service from servicemix bundle
avoiding jbi? I've got another bundle which uses connection via http from
servicemix and it works fine without configuring jbi endpoints, etc. 

Or if there is no other way, could anyone check whether i am not missing any
detail. 
- I have got simple osgi bundle with generated from wsdl client - using
cxf-codegen-plugin

- In my bundle-context.xml I specified:
<cxfbc:provider wsdl="http://localhost:9090/Translator?wsdl"; />                 
        - points
to ws wsdl which I want to invoke 

<cxfse:endpoint>
        <cxfse:pojo>
                <bean class="com.amigo.cxf.TranslatorClient" id="translator">   
        - class
from my bundle from which I invoke ws   
                        <property name="gtPort">
                                <cxfse:proxy type="com.amigo.cxf.Translator" /> 
        - ws interface
generated by cxf-codegen-plugin on which I invoke ws method
                        </property>
                </bean>
        </cxfse:pojo>
</cxfse:endpoint>

<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />


- I included in definitions of ws wsdl
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration";

-- 
View this message in context: 
http://old.nabble.com/Invoking-external-web-service-from-SE-tp28722871p28833625.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to