Git Product home page Git Product logo

php_excercises_3's Introduction

php_excercises4

Aufgaben php: soap, rest datenbankzugriffe // bibinfo16 // M.Block

Aufgabe 1: SOAP WEB SERVICE CLIENT

  1. Erstellen Sie einen SOAP basierten Web Service-Client für die Abfrage von Wetterinformationen. Verwenden Sie dazu die GetWeather-Methode des Dienstes. a. Doku: http://www.webservicex.com/globalweather.asmx b. WSDL: http://www.webservicex.com/globalweather.asmx?WSDL c. Die Informationen werden in XML geliefert. Parsen Sie die Informationen mit einem beliebigen Parser und geben Sie die Informationen in strukturierter Darstellung übersichtlich aus (z.B. als Liste oder Tabelle). d. Hinweise: i. Beachten Sie, dass die XML Zeichenkette als Property in einer stdClass enthalten ist. Es bietet sich an die die Datenstruktur mit einem Variablen-Dump zunächst zu untersuchen. ii. Bei der Implementierung werden Sie feststellen, dass der Dienst einen Fehler aufweist. Im XML wird als Codierung UTF-16 angegeben, allerdings Zeichen des UTF- 8 Zeichensatzes genutzt. Dies führt in PHP zur Fehlermeldung: „Document labelled UTF-16 but has UTF-8 content in Entity“. Ein Workaround zur Vermeidung des Fehlers ist, dass Sie mittels preg_replace „UTF-16“ durch „UTF-8“ ersetzen.
  2. Führen Sie die Anfragen an den Dienst mit drei unterschiedlichen Städten durch.

php_excercises_3's People

Contributors

kathrin77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.