Võrgurakenduste protokollid 2: erinevus redaktsioonide vahel

Allikas: Lambda
Mine navigeerimisribale Mine otsikasti
Resümee puudub
 
(ei näidata 2 kasutaja 12 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 ==
== SOAP ==


Good explanatory stuff from simpler to more complex:
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:


* http://www.eherenow.com/soapfight.htm
* http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
* http://nmwg.internet2.edu/meetings/ggf10/dan-rpc-doc.ppt


== SOAP extra tech ==
Request:


Stuff often used with SOAP: describing services (wsdl), service catalogue (uddi), additional interoperability standards (WS-I).
<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>


If worried, read [http://www.wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/ "s stands for simple"] first.
Answer:


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.  
<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>


=== WSDL ===
</pre>


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


A fairly good presentation explaining WSDL: [[Pilt:WSDL.pdf]]
No concrete questions about XML schema.


=== UDDI ===
Read in this order:


Read the [http://en.wikipedia.org/wiki/Universal_Description_Discovery_and_Integration wikipedia overview]
* [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]


=== WS-I stuff ===
== SOAP message styles ==


Read the [http://en.wikipedia.org/wiki/Web_Services_Interoperability wikipedia overview] and have a brief look at the [http://www.ws-i.org/ ws-i official site].
A good [http://javainsimpleway.com/soap-message-binding-style/ overview] with examples.


== REST ==
== SOAP extra tech ==


Explained well:
<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.
* http://www.ibm.com/developerworks/webservices/library/ws-restful/
* http://en.wikipedia.org/wiki/Representational_State_Transfer


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


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


* [http://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol wikipedia]
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.
* [http://www.ibm.com/developerworks/webservices/library/x-xmppintro/index.html ibm intro (good!)]


and have a look at
=== WSDL ===


* [http://xmpp.org/rfcs/rfc3920.html details at xmpp org]
A detailed but partly almost readable w3c primer: http://www.w3.org/TR/wsdl20-primer/. You may also have a look
* [http://xmpp.org/protocols/ xmpp protocol stack] at xmpp.org
at the [http://www.w3.org/TR/wsdl old version primer].


You may also have a look at google [http://code.google.com/appengine/articles/using_xmpp.html xmpp api example].
A fairly good presentation explaining WSDL: [[Pilt:WSDL.pdf]]


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]
=== UDDI ===


Have a look at other IM protocols: [http://imfreedom.org/wiki/Main_Page im wiki]
Read the [http://en.wikipedia.org/wiki/Universal_Description_Discovery_and_Integration wikipedia overview]


== Google protocol buffers ==
=== WS-I stuff ===


Start with this: [http://code.google.com/apis/protocolbuffers/docs/overview.html google overview]
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