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] – [Raspbian] 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 | ||
cours/service_oriented_computing_and_web_services/2017-2018/gsoap.1523510691.txt.gz · Dernière modification : 2018/04/12 05:24 de tigli