Web Services: Difference between revisions

m
apostrophe
m (correction)
m (apostrophe)
Line 19: Line 19:
Visual DataFlex's Web Service mechanism relies on having Microsoft's [http://www.microsoft.com/windowsserver2003/iis/default.mspx IIS] (Internet Information Services) running on the "''server''" machine.  A service is developed by first [[Web_Service_Basics#Creating_a_WebApp_Project|creating a WebApp project]] (program) within the [[Workspace]] (if one does not already exist - it is always named "WebApp" and there can be only one such in any Workspace), then [[Web_Service_Basics#Creating_a_Web_Service_Object|creating a Web Service object]] which will be deployed within it.
Visual DataFlex's Web Service mechanism relies on having Microsoft's [http://www.microsoft.com/windowsserver2003/iis/default.mspx IIS] (Internet Information Services) running on the "''server''" machine.  A service is developed by first [[Web_Service_Basics#Creating_a_WebApp_Project|creating a WebApp project]] (program) within the [[Workspace]] (if one does not already exist - it is always named "WebApp" and there can be only one such in any Workspace), then [[Web_Service_Basics#Creating_a_Web_Service_Object|creating a Web Service object]] which will be deployed within it.


In the Web Service Object (which will have a source file extension of ".wo") you then create methods ([[Function]]s and/or [[Procedure]]s), which you will subsequently [[Web_Service_Basics#Publishing_an_Operation|publish]] as your services '''''operations'''''.
In the Web Service Object (which will have a source file extension of ".wo") you then create methods ([[Function]]s and/or [[Procedure]]s), which you will subsequently [[Web_Service_Basics#Publishing_an_Operation|publish]] as your service's '''''operations'''''.


By default [[Visual DataFlex]] publishes [http://www.ibm.com/developerworks/webservices/library/ws-docstyle.html Document Style] web services and unless you have a pressing reason to use the alternative ([http://en.wikipedia.org/wiki/Remote_procedure_call RPC] Style) you should adhere to this.  This means that, except in the simplest cases (such as the much-cited example of serving up a stock price), you will need to [[Web_Service_Basics#Defining_XML_Documents|define the documents]] which are to be passed to and from the service's operations.
By default [[Visual DataFlex]] publishes [http://www.ibm.com/developerworks/webservices/library/ws-docstyle.html Document Style] web services and unless you have a pressing reason to use the alternative ([http://en.wikipedia.org/wiki/Remote_procedure_call RPC] Style) you should adhere to this.  This means that, except in the simplest cases (such as the much-cited example of serving up a stock price), you will need to [[Web_Service_Basics#Defining_XML_Documents|define the documents]] which are to be passed to and from the service's operations.