1 / 10

IDU0075 Sissejuhatus veebiteenustesse

IDU0075 Sissejuhatus veebiteenustesse. Tarvo Treier Tarvo.treier@gmail.com. Veebiteenustega seotud standardid. WSDL. WSDL on XML põhine keel, mis kirjeldab veebiteenuseid Operatsioonid Sõnumid Andmetüübid Viited http://www.w3.org/TR/wsdl http://w3schools.com/wsdl/default.asp

vienna
Télécharger la présentation

IDU0075 Sissejuhatus veebiteenustesse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. IDU0075 Sissejuhatus veebiteenustesse Tarvo Treier Tarvo.treier@gmail.com

  2. Veebiteenustega seotud standardid Tarvo Treier tarvo.treier@gmail.com

  3. WSDL WSDL on XML põhine keel, mis kirjeldab veebiteenuseid Operatsioonid Sõnumid Andmetüübid Viited http://www.w3.org/TR/wsdl http://w3schools.com/wsdl/default.asp http://www.ws-standards.com/wsdl.asp Tarvo Treier tarvo.treier@gmail.com

  4. Tarvo Treier tarvo.treier@gmail.com

  5. WSDL’i elemendid <definitions> <types>... </types> <message>... </message> <portType>... </portType> <binding>... </binding> <service>... </service> </definitions> Tarvo Treier tarvo.treier@gmail.com

  6. WSDL’i elemendid • Types – siin saame XSD importida või kohapeal deklareerida • Messages – iga riequesti ja response jaoks on siin üks sõnum • PortType – kirjeldab operatsioonid ja nende sisend ning väljund sõnumid. • Binding - määratakse sõnumivahetuse transport iga operatsiooni kohta (document+literalrecommended) • Service – nimi ja asukoht Tarvo Treier tarvo.treier@gmail.com

  7. Operatsioonide tüübid One-way – operatsioon võtab sõnumeid ainult vastu Request-response – operatsioon võtab sõnumeid vastu ja vastab neile Solicit-response – operatsioon saadab sõnumeid ja jääb neile vastuseid ootama Notification– operatsioon saadab sõnumeid ja ei oota neile vastuseid Tarvo Treier tarvo.treier@gmail.com

  8. Näide <message name="getTermRequest"> <part name="term" type="xs:string"/> </message> <message name="getTermResponse"> <part name="value" type="xs:string"/> </message> <portType name="glossaryTerms"><operation name="getTerm"><input message="getTermRequest"/><output message="getTermResponse"/> ...</operation> </portType> Tarvo Treier tarvo.treier@gmail.com

  9. WSDL asukoht • Tüüpiliselt asub WSDL aadressil: • endpoint?wsdl • Näiteks http://localhost:9999/hello?wsdl Tarvo Treier tarvo.treier@gmail.com

  10. Näite WSDL (football) http://elrond.tud.ttu.ee/material/treier/idu0075/2010/Harjutused/H5_WSDL/infoStart.wsdl SoapUIWebStart http://dl.eviware.com/jnlp/soapUI/os/3.6/soapui.jnlp Endpoint http://footballpool.dataaccess.eu/data/info.wso Tarvo Treier tarvo.treier@gmail.com

More Related