Võrgurakenduste protokollid 2: erinevus redaktsioonide vahel

Allikas: Lambda
Mine navigeerimisribale Mine otsikasti
 
(ei näidata 2 kasutaja 27 vahepealset redaktsiooni)
1. rida: 1. rida:
== xml-rpc ==
[https://en.wikipedia.org/wiki/XML-RPC Wiki overview]. The old [http://www.xmlrpc.com/ official site] is gone, but there is a different replacement on the domain.
Call example:
<pre>
POST /RPC2 HTTP/1.0
User-Agent: Frontier/5.1.2 (WinNT)
Host: betty.userland.com
Content-Type: text/xml
Content-length: 181
<?xml version="1.0"?>
<methodCall>
      <methodName>examples.getStateName</methodName>
      <params>
          <param> <value><i4>41</i4></value> </param>
      </params>
  </methodCall>
</pre>
== SOAP ==
Read in this order:
* [http://en.wikipedia.org/wiki/SOAP wikipedia]
<!-- * [http://www.w3schools.com/soap/ w3schools micro-tutorial] DEAD -->
* [http://www.w3.org/TR/2007/REC-soap12-part0-20070427/ w3c primer]
Small example from xTee:
Request:
<pre>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd" xmlns:ehis="http://producers.ehis.xtee.riik.ee/producer/ehis">
  <soapenv:Header>
      <xtee:id xsi:type="xsd:string">680e0c731a244e2c91210e1540458441</xtee:id>
      <xtee:nimi xsi:type="xsd:string">ehis.idpilet</xtee:nimi>
      <xtee:isikukood xsi:type="xsd:string">10101010101</xtee:isikukood>
      <xtee:andmekogu xsi:type="xsd:string">ehis</xtee:andmekogu>
      <xtee:asutus xsi:type="xsd:string">10747013</xtee:asutus>
  </soapenv:Header>
  <soapenv:Body>
      <ehis:idpilet soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <keha xsi:type="ehis:EHIS_Isikukood">10101010101</keha>
      </ehis:idpilet>
  </soapenv:Body>
</soapenv:Envelope>
</pre>
Answer:
<pre>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
      <ns1:idpiletResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://producers.ehis.xtee.riik.ee/producer/ehis">
        <paring xsi:type="ns1:EHIS_Isikukood">10101010101</paring>
        <keha xsi:type="ns1:EHIS_Boolean">ei</keha>
      </ns1:idpiletResponse>
  </soapenv:Body>
</soapenv:Envelope>
</pre>
== XML Schema ==
No concrete questions about XML schema.
Read in this order:
* [http://en.wikipedia.org/wiki/XML_Schema_%28W3C%29 wikipedia]
<!--* [http://www.w3schools.com/Schema/ w3schools micro-tutorial] DEAD -->
* [http://www.w3.org/TR/xmlschema-0/ w3c primer]
== SOAP message styles ==
A good [http://javainsimpleway.com/soap-message-binding-style/ overview] with examples.
== SOAP extra tech ==
== SOAP extra tech ==
<font color="red">NB!</font> There will be no concrete questions about SOAP extra tech except basic understanding as to what do the words mean.


Stuff often used with SOAP: describing services (wsdl), service catalogue (uddi), additional interoperability standards (WS-I).
Stuff often used with SOAP: describing services (wsdl), service catalogue (uddi), additional interoperability standards (WS-I).


=== WSDL ===
If worried, read [http://harmful.cat-v.org/software/xml/soap/simple "s stands for simple"] first.


=== UDDI ===
A detailed demo of SOAP and WSDL stuff with all the tiniest details can be found at the [http://gsoap2.sourceforge.net/ gsoap] toolkit site. The [http://www.cs.fsu.edu/~engelen/calc.wsdl demo WSDL] used in the live examples is also quite readable.


=== WS-I stuff ===
=== WSDL ===


== XMPP ==
A detailed but partly almost readable w3c primer: http://www.w3.org/TR/wsdl20-primer/. You may also have a look
at the [http://www.w3.org/TR/wsdl old version primer].


Read:
A fairly good presentation explaining WSDL: [[Pilt:WSDL.pdf]]


* [http://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol wikipedia]
=== UDDI ===
* [http://xmpp.org/protocols/ xmpp protocol stack] at xmpp.org


Related: [http://www.cubiclemuses.com/cm/articles/2009/08/09/waves-web-of-protocols/ google wave protocols] and [http://bitworking.org/news/431/wave-first-thoughts additional bits on wave]
Read the [http://en.wikipedia.org/wiki/Universal_Description_Discovery_and_Integration wikipedia overview]


Have a look at other IM protocols: [http://imfreedom.org/wiki/Main_Page im wiki]
=== WS-I stuff ===


== Google protocol buffers ==
Read the [http://en.wikipedia.org/wiki/Web_Services_Interoperability wikipedia overview]

Viimane redaktsioon: 16. veebruar 2026, kell 09:53

xml-rpc

Wiki overview. The old official site is gone, but there is a different replacement on the domain.

Call example:

POST /RPC2 HTTP/1.0
User-Agent: Frontier/5.1.2 (WinNT)
Host: betty.userland.com
Content-Type: text/xml
Content-length: 181

<?xml version="1.0"?> 
 <methodCall> 
       <methodName>examples.getStateName</methodName> 
       <params> 
           <param> <value><i4>41</i4></value> </param> 
      </params> 
  </methodCall> 

SOAP

Read in this order:

Small example from xTee:


Request:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd" xmlns:ehis="http://producers.ehis.xtee.riik.ee/producer/ehis">
   <soapenv:Header>
      <xtee:id xsi:type="xsd:string">680e0c731a244e2c91210e1540458441</xtee:id>
      <xtee:nimi xsi:type="xsd:string">ehis.idpilet</xtee:nimi>
      <xtee:isikukood xsi:type="xsd:string">10101010101</xtee:isikukood>
      <xtee:andmekogu xsi:type="xsd:string">ehis</xtee:andmekogu>
      <xtee:asutus xsi:type="xsd:string">10747013</xtee:asutus>
   </soapenv:Header>
   <soapenv:Body>
      <ehis:idpilet soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <keha xsi:type="ehis:EHIS_Isikukood">10101010101</keha>
      </ehis:idpilet>
   </soapenv:Body>
</soapenv:Envelope>

Answer:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <ns1:idpiletResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://producers.ehis.xtee.riik.ee/producer/ehis">
         <paring xsi:type="ns1:EHIS_Isikukood">10101010101</paring>
         <keha xsi:type="ns1:EHIS_Boolean">ei</keha>
      </ns1:idpiletResponse>
   </soapenv:Body>
</soapenv:Envelope>

XML Schema

No concrete questions about XML schema.

Read in this order:

SOAP message styles

A good overview with examples.

SOAP extra tech

NB! There will be no concrete questions about SOAP extra tech except basic understanding as to what do the words mean.

Stuff often used with SOAP: describing services (wsdl), service catalogue (uddi), additional interoperability standards (WS-I).

If worried, read "s stands for simple" first.

A detailed demo of SOAP and WSDL stuff with all the tiniest details can be found at the gsoap toolkit site. The demo WSDL used in the live examples is also quite readable.

WSDL

A detailed but partly almost readable w3c primer: http://www.w3.org/TR/wsdl20-primer/. You may also have a look at the old version primer.

A fairly good presentation explaining WSDL: Fail:WSDL.pdf

UDDI

Read the wikipedia overview

WS-I stuff

Read the wikipedia overview