| Author |
how to access SCA c++ componet via web service?(about SCA, AXIS2/C)
|
jing hu
Ranch Hand
Joined: Jun 30, 2009
Posts: 63
|
|
Now I have a simple SCA C++ component named Calculator. I just can access the simple component locally.
I want to define the SCA component binding with web service, so I add the below code in the Calculator.composite.
And then I start the Axis2/C HTTP server, I have set all the environment variables,such as
but when I type the address:http://localhost:9090/axis2/services in the web browser, I find the numbers of service in the axis2 doesn't changed(the port of axis2 is 9090).
So My question is :
1: can the above code define Calculator component with web service?
2: should I need to make a dir named Calculator in the axis2/services directory. if this, the code "<binding.ws/> " has no function.
in the axis2/services directory, I just need a service.xml and .dll or .so file. And I don't need any *.composite or *.componentType file any more.
3. whethr or not the address(http://localhost:9090/axis2/services) can display the sca component services? because I don't find any clue about how to deploy the Calculator component in axis2.
I am a new hand of SCA and Axis2/c. Any comment will be welcome! Thanks very much!
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
Try using the uri attribute in the <binding.ws> element, like this:
I have only played around with the Tuscany and Java and, as far as I know, you should not have to configure the web service stack used by Tuscany (Axis).
If you create a project that is using Tuscany, then you have to retain the composite and componentType files.
For more details, I recommend the SCA specifications. For C++ they can be found at: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=sca-c-cpp
I can also recommend the Tuscany User's mailing list where many of the friendly Tuscany developers answer questions.
Best wishes!
|
My free books and tutorials: http://www.slideshare.net/krizsan
|
 |
jing hu
Ranch Hand
Joined: Jun 30, 2009
Posts: 63
|
|
When I try to access the SCA component via Web Service. The Axis2/c HTTP server will have a segmentation fault and exit!
I also try SCA Java Component. It will be ok. I can access the sca component via Web Service.
I will read the resource you recommend with reserve.
Thanks very much.
|
 |
 |
|
|
subject: how to access SCA c++ componet via web service?(about SCA, AXIS2/C)
|
|
|