aspose file tools*
The moose likes Web Services and the fly likes how to access SCA c++ componet via web service?(about SCA, AXIS2/C) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to access SCA c++ componet via web service?(about SCA, AXIS2/C)" Watch "how to access SCA c++ componet via web service?(about SCA, AXIS2/C)" New topic
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to access SCA c++ componet via web service?(about SCA, AXIS2/C)