This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

how to access SCA c++ componet via web service?(about SCA, AXIS2/C)

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
jing hu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic