You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jayasreeb <ja...@infosys.com> on 2008/07/03 08:05:35 UTC
How to Invoke External web Service from Service Mix
Hi
I need to invoke external web serivce from Service.
Can you please provide me steps to do it? Is there any existing example for
this?
Jayasree.B
--
View this message in context: http://www.nabble.com/How-to-Invoke-External-web-Service-from-Service-Mix-tp18252387p18252387.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to Invoke External web Service from Service Mix
Posted by jayasreeb <ja...@infosys.com>.
Hi
I am still not clear with this.Please suggest me whether the steps are
correct.
1.I need to create service unit for binding component.In pom.xml file of
service unit I need to mention servicemix-cxf-bc under dependency section.I
also need to place following entry in xbean component of this service unit
so that it will invoke external web service.
<cxfbc:provider wsdl="/wsdl/calculator.wsdl"
locationURI="http://localhost:9001/bridgetest"
service="calculator:CalculatorService"
endpoint="CalculatorPortProxy"
interfaceName="calculator:CalculatorPortType"
>
</cxfbc:provider>
Lets say I have created a web service using axis and tomcat and exposing it
under "http://localhost"8080/testservice" by mentioning this url in the
loationURI will I be able to invoke this external web service from service
mix?
2.DO I need to write any java class to invoke the external web service?If
yes where do I need to place it?
3.By adding this servicemix-cxf-bc to service assembly and deploying it in
service mix will i be able to invoke external web service?
4.How can I test this invocation of external web service using Service mix?
Thanks in Advance
Jayasree.B
Freeman Fang wrote:
>
> jayasreeb wrote:
>> Hi
>>
>> I will be using maven tool to create cxf bc service unit.
>>
>> 1.If I create CXF bc provider then will I be able to call external web
>> service?
>>
> yes
>> 2.What are the entries which i need to mention in xbean file to call
>> external web service?
>>
> please see the configuration file in the test I mentioned
>> 3.How can i test whether external web service got invoked by Service mix?
>>
>> Jayasree.B
>>
>>
>>
> Also go through this test code you can see the external web service get
> invoked
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>> You can use Cxf bc provider, take a look at [1]
>>> [1]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
>>>
>>> Cheers
>>> Freeman
>>>
>>> jayasreeb wrote:
>>>
>>>> Hi
>>>>
>>>> I need to invoke external web serivce from Service.
>>>> Can you please provide me steps to do it? Is there any existing example
>>>> for
>>>> this?
>>>>
>>>> Jayasree.B
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-Invoke-External-web-Service-from-Service-Mix-tp18252387p18254890.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to Invoke External web Service from Service Mix
Posted by Freeman Fang <fr...@gmail.com>.
jayasreeb wrote:
> Hi
>
> I will be using maven tool to create cxf bc service unit.
>
> 1.If I create CXF bc provider then will I be able to call external web
> service?
>
yes
> 2.What are the entries which i need to mention in xbean file to call
> external web service?
>
please see the configuration file in the test I mentioned
> 3.How can i test whether external web service got invoked by Service mix?
>
> Jayasree.B
>
>
>
Also go through this test code you can see the external web service get
invoked
>
> Freeman Fang wrote:
>
>> Hi,
>> You can use Cxf bc provider, take a look at [1]
>> [1]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
>>
>> Cheers
>> Freeman
>>
>> jayasreeb wrote:
>>
>>> Hi
>>>
>>> I need to invoke external web serivce from Service.
>>> Can you please provide me steps to do it? Is there any existing example
>>> for
>>> this?
>>>
>>> Jayasree.B
>>>
>>>
>>
>>
>
>
Re: How to Invoke External web Service from Service Mix
Posted by jayasreeb <ja...@infosys.com>.
Hi
I will be using maven tool to create cxf bc service unit.
1.If I create CXF bc provider then will I be able to call external web
service?
2.What are the entries which i need to mention in xbean file to call
external web service?
3.How can i test whether external web service got invoked by Service mix?
Jayasree.B
Freeman Fang wrote:
>
> Hi,
> You can use Cxf bc provider, take a look at [1]
> [1]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
>
> Cheers
> Freeman
>
> jayasreeb wrote:
>> Hi
>>
>> I need to invoke external web serivce from Service.
>> Can you please provide me steps to do it? Is there any existing example
>> for
>> this?
>>
>> Jayasree.B
>>
>
>
>
--
View this message in context: http://www.nabble.com/How-to-Invoke-External-web-Service-from-Service-Mix-tp18252387p18253637.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to Invoke External web Service from Service Mix
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You can use Cxf bc provider, take a look at [1]
[1]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
Cheers
Freeman
jayasreeb wrote:
> Hi
>
> I need to invoke external web serivce from Service.
> Can you please provide me steps to do it? Is there any existing example for
> this?
>
> Jayasree.B
>