Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > de.comp.lang.php > #4848
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Arno Welzel <usenet@arnowelzel.de> |
| Newsgroups | de.comp.lang.php |
| Subject | Re: PHP Soap mit TLS Zertifikat [API abfrage} |
| Date | Sat, 10 Sep 2022 08:43:54 +0200 |
| Lines | 41 |
| Message-ID | <jo2q18FribcU1@mid.individual.net> (permalink) |
| References | <tfgrqa$7fe$1@news.nntp4.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net 8dFSTYJB2th4aj7XIux26Qzyf3vgXGpI5Xv30U5ryKnW/FisXy |
| Cancel-Lock | sha1:52w48etoysZ2ErXj4tDp9CH/VCE= |
| Content-Language | de-DE |
| In-Reply-To | <tfgrqa$7fe$1@news.nntp4.net> |
| Xref | csiph.com de.comp.lang.php:4848 |
Show key headers only | View raw
Timo, 2022-09-10 04:12:
> Guten Abend,
>
> kurz eine kleine Vorabinfo:
>
> Ich nutze IoT SIM Karten zur Überwachung meiner Weidezäune,
> da es bei uns im Ort nicht so gut ankommt, wenn meine Schafherde mal
> kurz einen Ausflug macht... ;-)
>
> Da es mir leider schon zweimal passiert ist, dass das Datenvolumen
> einzelner Karten aufgebraucht war und somit keine Datenübertragung
> stattfinden konnte, möchte ich einmal am Tag die API des IoT Portals
> abfragen, jedoch bin ich in Bezug auf "SOAP" nackter Anfänger.
>
> Zum Problem:
> Wenn ich den Echo Test der API wie folgt über die Shell abfrage,
> bekomme ich eine korrekte Antwort.
>
> ==============
> curl -X POST -H "Content-Type: application/json" \
> -H "Accept-Encoding: gzip,deflate" \
> -H "Cache-Control: no-cache" \
> --cert customer-USER.cer \
> --key customer-USER.key \
> https://kiteplatform-api.telefonica.com:8010/services/REST/GlobalM2M/Echo/v1/r12/echo
> -d '{"data":"test"}'
> ==============
>
> Mein Problem ist jetzt, wie ich das in php bewerkstelligen kann.
> Der Server läuft mit php8.0 und die Erweiterung php8.0-soap ist auch
> installiert.
Was spricht dagegen, obiges einfach mit shell_exec() auszuführen?
Siehe auch <https://www.php.net/manual/de/function.shell-exec.php>
--
Arno Welzel
https://arnowelzel.de
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
PHP Soap mit TLS Zertifikat [API abfrage} Timo <me@freedyn.invalid> - 2022-09-10 04:12 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Timo <me@freedyn.invalid> - 2022-09-10 05:05 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Arno Welzel <usenet@arnowelzel.de> - 2022-09-10 08:43 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Timo <me@freedyn.invalid> - 2022-09-10 21:20 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Tim Ritberg <tim@server.invalid> - 2022-09-10 22:51 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Timo <me@freedyn.invalid> - 2022-09-14 03:35 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Arno Welzel <usenet@arnowelzel.de> - 2022-09-11 14:01 +0200
Re: PHP Soap mit TLS Zertifikat [API abfrage} Timo <me@freedyn.invalid> - 2022-09-14 03:36 +0200
csiph-web