Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic