cours:service_oriented_computing_and_web_services:2017-2018:gsoap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
cours:service_oriented_computing_and_web_services:2017-2018:gsoap [2018/04/12 05:24] – [Tutorial : Getting Start with gSOAP] tigli | cours:service_oriented_computing_and_web_services:2017-2018:gsoap [2018/04/12 13:35] (Version actuelle) – [How to publish a WSDL of a web service using gSOAP] tigli | ||
---|---|---|---|
Ligne 55: | Ligne 55: | ||
[[https:// | [[https:// | ||
+ | |||
+ | |||
+ | ==== Publish the WSDL of your web service using gSOAP ==== | ||
+ | || | ||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | |||
+ | int http_get(struct soap *soap) | ||
+ | { | ||
+ | FILE *fd = NULL; | ||
+ | char *s = strchr(soap-> | ||
+ | if (!s || strcmp(s, "? | ||
+ | return SOAP_GET_METHOD; | ||
+ | fd = fopen(" | ||
+ | if (!fd) | ||
+ | return 404; // return HTTP not found error | ||
+ | | ||
+ | | ||
+ | for (;;) | ||
+ | { | ||
+ | size_t r = fread(soap-> | ||
+ | if (!r) | ||
+ | | ||
+ | if (soap_send_raw(soap, | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | </ | ||
==== Test the interoperability | ==== Test the interoperability | ||
Ligne 68: | Ligne 101: | ||
To illustrate that choose your own prefered POSIX function and test it through a Web Service gSOAP. | To illustrate that choose your own prefered POSIX function and test it through a Web Service gSOAP. | ||
If you don't have imagination try // getpid() //. | If you don't have imagination try // getpid() //. | ||
- | |||
- | ==== Raspbian ==== | ||
- | |||
- | Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware. An operating system is the set of basic programs and utilities that make your Raspberry Pi run. However, Raspbian provides more than a pure OS: it comes with over 35,000 packages, pre-compiled software bundled in a nice format for easy installation on your Raspberry Pi. | ||
- | |||
cours/service_oriented_computing_and_web_services/2017-2018/gsoap.txt · Dernière modification : 2018/04/12 13:35 de tigli