You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by manish_goyal <ma...@infosys.com> on 2008/09/26 12:46:00 UTC

help need in accessing external web service through service mix

Hi, 
I tried accessing an external web service from servicemix. I used one
cxf-bc-provider and one http-consumer to access the web service. I build the
project. I am attaching the xbean file of both component. I have uploaded
the wsdl of the web service for your reference. 

cxf-bc-provider
<beans xmlns="http://www.springframework.org/schema/beans" 
       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" 
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
       xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> 

  <cxfbc:provider wsdl="classpath:Hello.wsdl" 
                        locationURI="http://172.21.86.156:9001/hello" 
                        service="hello:HelloTestService" 
                        endpoint="HelloTestPort" 
                        interfaceName="hello:HelloTest"> 
  
  </cxfbc:provider> 


</beans> 

http-consumer

<beans xmlns:http="http://servicemix.apache.org/http/1.0" 
       xmlns:replaceMe="http://servicemix.apache.org/replaceMe" 
       xmlns="http://www.springframework.org/schema/beans" 
	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" 
       xsi:schemaLocation="http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> 

  <http:endpoint service="hello:HelloTestService" 
                 endpoint="HelloTestPort" 
                 role="consumer" 
                 locationURI="http://localhost:8192/example/"  />   
                

</beans> 

But while deploying the project. I am getting this error: 

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'org.apache.servicemix.cxfbc.CxfBcProvider' defined in
file [C
:\iona\fuse-esb-3.3.1.3\data\smx\service-assemblies\tutorial-sa\version_1\sus\se
rvicemix-cxf-bc\cxf-bc-su\xbean.xml]: Initialization of bean failed; nested
exce
ption is org.springframework.beans.InvalidPropertyException: Invalid
property 'l
ocationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcProvider]: No
proper
ty 'locationURI' found


Please reply soon. It is very urgent. 
Thanks http://www.nabble.com/file/p19686095/Hello.wsdl Hello.wsdl 
-- 
View this message in context: http://www.nabble.com/help-need-in-accessing-external-web-service-through-service-mix-tp19686095p19686095.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: help need in accessing external web service through service mix

Posted by stlecho <st...@gmail.com>.
You can alwayse have a look at these posts:
http://www.nabble.com/Difficulty-in-configuring-external-webservice-call-tp19070587p19091393.html
http://www.nabble.com/How-to-test-a-cxfbc%3Aprovider---tp18964313p18964313.html
http://www.nabble.com/Comparison-between-servicemix-http-and-servicemix-cxf-bc-tp18943025p18943025.html


dkulp wrote:
> 
> 
> This definitely a question for the servicemix users list, not cxf.
> 
> Dan
> 
> 
> On Friday 26 September 2008 6:46:00 am manish_goyal wrote:
>> Hi,
>> I tried accessing an external web service from servicemix. I used one
>> cxf-bc-provider and one http-consumer to access the web service. I build
>> the project. I am attaching the xbean file of both component. I have
>> uploaded the wsdl of the web service for your reference.
>>
>> cxf-bc-provider
>> <beans xmlns="http://www.springframework.org/schema/beans"
>>        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
>>        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
>> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
>>        http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>
>>   <cxfbc:provider wsdl="classpath:Hello.wsdl"
>>                         locationURI="http://172.21.86.156:9001/hello"
>>                         service="hello:HelloTestService"
>>                         endpoint="HelloTestPort"
>>                         interfaceName="hello:HelloTest">
>>
>>   </cxfbc:provider>
>>
>>
>> </beans>
>>
>> http-consumer
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
>>        xmlns="http://www.springframework.org/schema/beans"
>> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
>> 	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>>        xsi:schemaLocation="http://servicemix.apache.org/http/1.0
>> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
>>        http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>
>>   <http:endpoint service="hello:HelloTestService"
>>                  endpoint="HelloTestPort"
>>                  role="consumer"
>>                  locationURI="http://localhost:8192/example/"  />
>>
>>
>> </beans>
>>
>> But while deploying the project. I am getting this error:
>>
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error
>> creati
>> ng bean with name 'org.apache.servicemix.cxfbc.CxfBcProvider' defined in
>> file [C
>>
>> :\iona\fuse-esb-3.3.1.3\data\smx\service-assemblies\tutorial-sa\version_1\s
>> :us\se
>>
>> rvicemix-cxf-bc\cxf-bc-su\xbean.xml]: Initialization of bean failed;
>> nested
>> exce
>> ption is org.springframework.beans.InvalidPropertyException: Invalid
>> property 'l
>> ocationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcProvider]: No
>> proper
>> ty 'locationURI' found
>>
>>
>> Please reply soon. It is very urgent.
>> Thanks http://www.nabble.com/file/p19686095/Hello.wsdl Hello.wsdl
> 
> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://www.nabble.com/help-need-in-accessing-external-web-service-through-service-mix-tp19686069p19721884.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: help need in accessing external web service through service mix

Posted by Daniel Kulp <dk...@apache.org>.
This definitely a question for the servicemix users list, not cxf.

Dan


On Friday 26 September 2008 6:46:00 am manish_goyal wrote:
> Hi,
> I tried accessing an external web service from servicemix. I used one
> cxf-bc-provider and one http-consumer to access the web service. I build
> the project. I am attaching the xbean file of both component. I have
> uploaded the wsdl of the web service for your reference.
>
> cxf-bc-provider
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
>        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
>   <cxfbc:provider wsdl="classpath:Hello.wsdl"
>                         locationURI="http://172.21.86.156:9001/hello"
>                         service="hello:HelloTestService"
>                         endpoint="HelloTestPort"
>                         interfaceName="hello:HelloTest">
>
>   </cxfbc:provider>
>
>
> </beans>
>
> http-consumer
>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
>        xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
> 	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
>   <http:endpoint service="hello:HelloTestService"
>                  endpoint="HelloTestPort"
>                  role="consumer"
>                  locationURI="http://localhost:8192/example/"  />
>
>
> </beans>
>
> But while deploying the project. I am getting this error:
>
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creati
> ng bean with name 'org.apache.servicemix.cxfbc.CxfBcProvider' defined in
> file [C
>
> :\iona\fuse-esb-3.3.1.3\data\smx\service-assemblies\tutorial-sa\version_1\s
> :us\se
>
> rvicemix-cxf-bc\cxf-bc-su\xbean.xml]: Initialization of bean failed; nested
> exce
> ption is org.springframework.beans.InvalidPropertyException: Invalid
> property 'l
> ocationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcProvider]: No
> proper
> ty 'locationURI' found
>
>
> Please reply soon. It is very urgent.
> Thanks http://www.nabble.com/file/p19686095/Hello.wsdl Hello.wsdl



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: help need in accessing external web service through service mix

Posted by Daniel Kulp <dk...@apache.org>.
This definitely a question for the servicemix users list, not cxf.

Dan


On Friday 26 September 2008 6:46:00 am manish_goyal wrote:
> Hi,
> I tried accessing an external web service from servicemix. I used one
> cxf-bc-provider and one http-consumer to access the web service. I build
> the project. I am attaching the xbean file of both component. I have
> uploaded the wsdl of the web service for your reference.
>
> cxf-bc-provider
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
>        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
>   <cxfbc:provider wsdl="classpath:Hello.wsdl"
>                         locationURI="http://172.21.86.156:9001/hello"
>                         service="hello:HelloTestService"
>                         endpoint="HelloTestPort"
>                         interfaceName="hello:HelloTest">
>
>   </cxfbc:provider>
>
>
> </beans>
>
> http-consumer
>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
>        xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:hello="http://swebservice.samples.servicemix.apache.org/">
> 	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
>   <http:endpoint service="hello:HelloTestService"
>                  endpoint="HelloTestPort"
>                  role="consumer"
>                  locationURI="http://localhost:8192/example/"  />
>
>
> </beans>
>
> But while deploying the project. I am getting this error:
>
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creati
> ng bean with name 'org.apache.servicemix.cxfbc.CxfBcProvider' defined in
> file [C
>
> :\iona\fuse-esb-3.3.1.3\data\smx\service-assemblies\tutorial-sa\version_1\s
> :us\se
>
> rvicemix-cxf-bc\cxf-bc-su\xbean.xml]: Initialization of bean failed; nested
> exce
> ption is org.springframework.beans.InvalidPropertyException: Invalid
> property 'l
> ocationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcProvider]: No
> proper
> ty 'locationURI' found
>
>
> Please reply soon. It is very urgent.
> Thanks http://www.nabble.com/file/p19686095/Hello.wsdl Hello.wsdl



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog