forums_mp
asked on
RESTful Web Services C++
Give the the discussion from the thread at the link:
http://stackoverflow.com/questions/298113/how-can-i-implement-a-restful-webservice-using-c
Lets assume that I'm using Apache Tomcat and Apache Axis as part of my front end.
An incoming HTTP Request would get routed through the Server, the XML message parsed via Axis and the appropriate service invoked. IOW.
HTTP Request
|
Apache Tomcat (Web server)
|
Apache Axis (parse SOAP/REST message)
|
Web Service
One the responses within the thread had a link for web development (Http template) libaries for C++. ClearSilver and CppCMS were a few tools mentioned.
The question. Where does a web development framework library fit into my flow diagram above? In other words, would I need a piece of code that'll sit in front of the Apache Tomcat server that'll modify the html pages that get served up to a client - to include parse the html pages?
Not sure if I'm following what the need is for a 'web development library' given Apache Axis as part of the front end.
I'm trying to layout a flow diagram that shows what happens when a request is submitted from a web portal (HTTP request) to access a RESTful web service
http://stackoverflow.com/questions/298113/how-can-i-implement-a-restful-webservice-using-c
Lets assume that I'm using Apache Tomcat and Apache Axis as part of my front end.
An incoming HTTP Request would get routed through the Server, the XML message parsed via Axis and the appropriate service invoked. IOW.
HTTP Request
|
Apache Tomcat (Web server)
|
Apache Axis (parse SOAP/REST message)
|
Web Service
One the responses within the thread had a link for web development (Http template) libaries for C++. ClearSilver and CppCMS were a few tools mentioned.
The question. Where does a web development framework library fit into my flow diagram above? In other words, would I need a piece of code that'll sit in front of the Apache Tomcat server that'll modify the html pages that get served up to a client - to include parse the html pages?
Not sure if I'm following what the need is for a 'web development library' given Apache Axis as part of the front end.
I'm trying to layout a flow diagram that shows what happens when a request is submitted from a web portal (HTTP request) to access a RESTful web service
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ahoffmann:
I think I should clarify what appears to be an error on my part. Getting use to the various apache 'parts' at times seems daunting.
I think my sketch should reflect Apache HTTP Web Server not Apache Tomcat. Now my understading is the 'handling' of REST will be done by Axis. IOW, the HTTP request will get routed through the web server, which forwards the info to AXIS and AXIS will call the appropriate service.
I'm still confused on where the use of a template library (CppCMS, WT) fit in? I think i understand the front end piece based on your response. i.e. When viewed from EE, the comments I'm typing now prior to depressing 'Submit' will get transformed into an HTTP request (HTTP Request is a nice way of saying send HTML?) when Submit is depressed which will get handled by the HTTP Server. HTTP Responses will get transformed into HTML and rendered by the browser for viewing.
I think I should clarify what appears to be an error on my part. Getting use to the various apache 'parts' at times seems daunting.
I think my sketch should reflect Apache HTTP Web Server not Apache Tomcat. Now my understading is the 'handling' of REST will be done by Axis. IOW, the HTTP request will get routed through the web server, which forwards the info to AXIS and AXIS will call the appropriate service.
I'm still confused on where the use of a template library (CppCMS, WT) fit in? I think i understand the front end piece based on your response. i.e. When viewed from EE, the comments I'm typing now prior to depressing 'Submit' will get transformed into an HTTP request (HTTP Request is a nice way of saying send HTML?) when Submit is depressed which will get handled by the HTTP Server. HTTP Responses will get transformed into HTML and rendered by the browser for viewing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.xfront.com/REST-Web-Services.html