cvs: presentations / soap-phpcon-ny2003.xml /slides/soap attachments2.xml attachments3.xml break.xml datatypes1.xml dime.xml disco.xml document.xml
implementations.xml mime.xml nusoap.xml pear.xml phpsoap.xml pythonsoap.xml schema1-xml.xml schema1.xml schema2-xml.xml schema2.xml schemasummary.xml
serverfault2.xml simpleclient-run.xml soap.xml soapenvelope-simple-1.xml soapenvelope-simple-2.xml soapenvelope-simple-3.xml soapfault.xml
soapslides.kpf uddi.xml whatisbad.xml whatisgood.xml wsdlparts.xml /slides/soap/examples client-babelfish-5.php client-babelfish-real.php
client-babelfish.php client-echostring-real.php client-echostring.php

From: Date: Sun, 20 Apr 2003 19:58:13 +0000
Subject: cvs: presentations / soap-phpcon-ny2003.xml /slides/soap attachments2.xml attachments3.xml break.xml datatypes1.xml dime.xml disco.xml document.xml
implementations.xml mime.xml nusoap.xml pear.xml phpsoap.xml pythonsoap.xml schema1-xml.xml schema1.xml schema2-xml.xml schema2.xml schemasummary.xml
serverfault2.xml simpleclient-run.xml soap.xml soapenvelope-simple-1.xml soapenvelope-simple-2.xml soapenvelope-simple-3.xml soapfault.xml
soapslides.kpf uddi.xml whatisbad.xml whatisgood.xml wsdlparts.xml /slides/soap/examples client-babelfish-5.php client-babelfish-real.php
client-babelfish.php client-echostring-real.php client-echostring.php
Groups: php.pres 
Request: Send a blank email to pres+get-630@lists.php.net to get a copy of this message
shane Sun Apr 20 15:58:13 2003 EDT Added files: /presentations soap-phpcon-ny2003.xml /presentations/slides/soap break.xml datatypes1.xml disco.xml nusoap.xml schema1-xml.xml schema1.xml schema2-xml.xml schema2.xml schemasummary.xml serverfault2.xml simpleclient-run.xml soapenvelope-simple-1.xml soapenvelope-simple-2.xml soapenvelope-simple-3.xml uddi.xml whatisbad.xml whatisgood.xml /presentations/slides/soap/examples client-babelfish-5.php client-babelfish-real.php client-babelfish.php client-echostring-real.php client-echostring.php Modified files: /presentations/slides/soap attachments2.xml attachments3.xml dime.xml document.xml implementations.xml mime.xml pear.xml phpsoap.xml pythonsoap.xml soap.xml soapfault.xml soapslides.kpf wsdlparts.xml Log: lots of new stuff

Index: presentations/slides/soap/attachments2.xml diff -u presentations/slides/soap/attachments2.xml:1.3 presentations/slides/soap/attachments2.xml:1.4 --- presentations/slides/soap/attachments2.xml:1.3 Sat Dec 7 04:25:42 2002 +++ presentations/slides/soap/attachments2.xml Sun Apr 20 15:58:12 2003 @@ -16,50 +16,5 @@ 'namespace'=>'http://soapinterop.org/')); ?>]]> </example> -<list> -<bullet>The attachments option can be either 'Mime' or 'DIME'.</bullet> -</list> -<example type="text" fontsize='1.4em' title="SOAP Message with Mime Attachments:"> -<![CDATA[POST /soap_interop/server_round2.php HTTP/1.0 -User-Agent: PEAR-SOAP 0.6.1 -Host: www.caraveo.com -Content-Type: multipart/related; type=text/xml; - boundary="=_a9e37cebd5684ebda52242db0a004f81" -Content-Length: 2042 -SOAPAction: "" ---=_a9e37cebd5684ebda52242db0a004f81 -Content-Type: text/xml; charset="UTF-8" -Content-Transfer-Encoding: quoted-printable - -<?xml version=3D"1.0" encoding=3D"UTF-8"?> - -<SOAP-ENV:Envelope - xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" - xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" - xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" - xmlns:ns4=3D"http://soapinterop.org/" - SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"> -<SOAP-ENV:Body> - -<ns4:echoMimeAttachment> -<test href=3D"cid:71df492641cddfe43fe3f7b057301fd5"/> -</ns4:echoMimeAttachment> - -</SOAP-ENV:Body> -</SOAP-ENV:Envelope> - ---=_a9e37cebd5684ebda52242db0a004f81 -Content-Disposition: attachment.php -Content-Type: text/plain -Content-Transfer-Encoding: base64 -Content-ID: <71df492641cddfe43fe3f7b057301fd5> - -PD9waHANCnJlcXVpcmVfb25jZS -... -cmludCAkd2lyZS4iXG5cblxuIjsN ---=_a9e37cebd5684ebda52242db0a004f81-- -]]> -</example> </slide> Index: presentations/slides/soap/attachments3.xml diff -u presentations/slides/soap/attachments3.xml:1.2 presentations/slides/soap/attachments3.xml:1.3 --- presentations/slides/soap/attachments3.xml:1.2 Wed Jul 10 16:00:38 2002 +++ presentations/slides/soap/attachments3.xml Sun Apr 20 15:58:12 2003 @@ -16,36 +16,5 @@ ?>]]> </example> -<example type="text" fontsize='1.4em' title="SOAP Message with DIME Attachments:"> -<![CDATA[POST /soap_interop/server_round2.php HTTP/1.0 -User-Agent: PEAR-SOAP 0.6.1 -Host: www.caraveo.com -Content-Type: application/dime -Content-Length: 1528 -SOAPAction: "" -[BINARY DIME HEADER INFORMATION] - -<?xml version="1.0" encoding="UTF-8"?> - -<SOAP-ENV:Envelope - xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" - SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> -<SOAP-ENV:Body> - -<echoMimeAttachment> -<test href="cid:ec1fc6eb10e1f726c0ceb422cc3b21a4"/> -</echoMimeAttachment> -</SOAP-ENV:Body> -</SOAP-ENV:Envelope> - -[BINARY DIME HEADER INFORMATION] - .... File Attachement is here .... -[BINARY DIME HEADER INFORMATION] - -]]> -</example> </slide> Index: presentations/slides/soap/dime.xml diff -u presentations/slides/soap/dime.xml:1.2 presentations/slides/soap/dime.xml:1.3 --- presentations/slides/soap/dime.xml:1.2 Tue Oct 22 04:07:56 2002 +++ presentations/slides/soap/dime.xml Sun Apr 20 15:58:12 2003 @@ -7,4 +7,38 @@ <bullet>DIME is default with .Net services</bullet> <bullet>PHP Support still experimental</bullet> </list> + +<example type="text" fontsize='1.4em' title="SOAP Message with DIME Attachments:"> +<![CDATA[POST /soap_interop/server_round2.php HTTP/1.0 +User-Agent: PEAR-SOAP 0.6.1 +Host: www.caraveo.com +Content-Type: application/dime +Content-Length: 1528 +SOAPAction: "" + +[BINARY DIME HEADER INFORMATION] + +<?xml version="1.0" encoding="UTF-8"?> + +<SOAP-ENV:Envelope + xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> +<SOAP-ENV:Body> + +<echoMimeAttachment> +<test href="cid:ec1fc6eb10e1f726c0ceb422cc3b21a4"/> +</echoMimeAttachment> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> + +[BINARY DIME HEADER INFORMATION] + .... File Attachement is here .... +[BINARY DIME HEADER INFORMATION] + +]]> +</example> + </slide> Index: presentations/slides/soap/document.xml diff -u presentations/slides/soap/document.xml:1.2 presentations/slides/soap/document.xml:1.3 --- presentations/slides/soap/document.xml:1.2 Sat Dec 7 04:25:42 2002 +++ presentations/slides/soap/document.xml Sun Apr 20 15:58:12 2003 @@ -14,14 +14,11 @@ <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > <SOAP-ENV:Body> <ns1:echoStringParam xmlns:ns1="http://soapinterop.org/xsd"> -this is a test +Hello World! </ns1:echoStringParam> </SOAP-ENV:Body> Index: presentations/slides/soap/implementations.xml diff -u presentations/slides/soap/implementations.xml:1.1 presentations/slides/soap/implementations.xml:1.2 --- presentations/slides/soap/implementations.xml:1.1 Mon Jul 1 19:56:29 2002 +++ presentations/slides/soap/implementations.xml Sun Apr 20 15:58:12 2003 @@ -11,7 +11,7 @@ </list> <list marginleft="2em"> <bullet>Brad Lafountain</bullet> -<bullet>Will become the standard PHP-SOAP library</bullet> +<bullet>Will become the standard PHP-SOAP library?</bullet> <bullet>C Based extension, using libxml2</bullet> </list> <list> Index: presentations/slides/soap/mime.xml diff -u presentations/slides/soap/mime.xml:1.1 presentations/slides/soap/mime.xml:1.2 --- presentations/slides/soap/mime.xml:1.1 Mon Jul 1 19:56:29 2002 +++ presentations/slides/soap/mime.xml Sun Apr 20 15:58:12 2003 @@ -10,5 +10,50 @@ <bullet>You can attach external data using Mime or DIME</bullet> <bullet>The SOAP Body will have an element with a reference to the external data</bullet> </list> + +<example type="text" fontsize='1.4em' title="SOAP Message with Mime Attachments:"> +<![CDATA[POST /soap_interop/server_round2.php HTTP/1.0 +User-Agent: PEAR-SOAP 0.6.1 +Host: www.caraveo.com +Content-Type: multipart/related; type=text/xml; + boundary="=_a9e37cebd5684ebda52242db0a004f81" +Content-Length: 2042 +SOAPAction: "" + +--=_a9e37cebd5684ebda52242db0a004f81 +Content-Type: text/xml; charset="UTF-8" +Content-Transfer-Encoding: quoted-printable + +<?xml version=3D"1.0" encoding=3D"UTF-8"?> + +<SOAP-ENV:Envelope + xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" + xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" + xmlns:ns4=3D"http://soapinterop.org/" + SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"> +<SOAP-ENV:Body> + +<ns4:echoMimeAttachment> +<test href=3D"cid:71df492641cddfe43fe3f7b057301fd5"/> +</ns4:echoMimeAttachment> + +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> + +--=_a9e37cebd5684ebda52242db0a004f81 +Content-Disposition: attachment.php +Content-Type: text/plain +Content-Transfer-Encoding: base64 +Content-ID: <71df492641cddfe43fe3f7b057301fd5> + +PD9waHANCnJlcXVpcmVfb25jZS +... +cmludCAkd2lyZS4iXG5cblxuIjsN +--=_a9e37cebd5684ebda52242db0a004f81-- +]]> +</example> + </slide> Index: presentations/slides/soap/pear.xml diff -u presentations/slides/soap/pear.xml:1.2 presentations/slides/soap/pear.xml:1.3 --- presentations/slides/soap/pear.xml:1.2 Tue Oct 22 04:07:56 2002 +++ presentations/slides/soap/pear.xml Sun Apr 20 15:58:12 2003 @@ -1,14 +1,23 @@ <slide title="PEAR::SOAP"> -<list> +<list title="The good parts"> <bullet>SOAP 1.1</bullet> <bullet>Interoperability testing done with all major implementations</bullet> <bullet>Script based Client and Server</bullet> <bullet>RPC/Encoded and Document/Literal</bullet> -<bullet>HTTP, HTTPS and SMTP</bullet> +<bullet>HTTP, HTTPS, TCP and SMTP</bullet> <bullet>Email Server and Gateway</bullet> <bullet>Supports 1999/2001 Schema</bullet> <bullet>WSDL Support</bullet> +<bullet>WSDL and DISCO Generation</bullet> <bullet>SOAP with Attachments (Mime)</bullet> <bullet>DIME Support</bullet> +</list> +<list title="The bad parts"> +<bullet>SOAP 1.2 support not finished</bullet> +<bullet>Not good for long running processes</bullet> +<bullet>Chews up memory</bullet> +<bullet>PHP 4 Object support</bullet> +<bullet>No streaming XML pull parser (yet)</bullet> +<bullet>Written entirely in script</bullet> </list> </slide> Index: presentations/slides/soap/phpsoap.xml diff -u presentations/slides/soap/phpsoap.xml:1.3 presentations/slides/soap/phpsoap.xml:1.4 --- presentations/slides/soap/phpsoap.xml:1.3 Tue Oct 22 22:52:09 2002 +++ presentations/slides/soap/phpsoap.xml Sun Apr 20 15:58:12 2003 @@ -1,10 +1,17 @@ <slide title="PHP-SOAP"> -<list> +<list title="The good parts"> <bullet>SOAP 1.1</bullet> <bullet>C based Client and Server</bullet> <bullet>RPC/Encoded only</bullet> -<bullet>HTTP only</bullet> +<bullet>HTTP and HTTPS only</bullet> <bullet>Supports 1999/2001 Schema</bullet> <bullet>WSDL Support</bullet> +<bullet>Fastest implementation available for PHP</bullet> +</list> +<list title="The bad parts"> +<bullet>SOAP 1.1 and 1.2 support not finished</bullet> +<bullet>WSDL support not finished, cannot interop test</bullet> +<bullet>PHP 4 Object support</bullet> +<bullet>No streaming XML parser (yet)</bullet> </list> </slide> Index: presentations/slides/soap/pythonsoap.xml diff -u presentations/slides/soap/pythonsoap.xml:1.1 presentations/slides/soap/pythonsoap.xml:1.2 --- presentations/slides/soap/pythonsoap.xml:1.1 Tue Aug 13 21:22:24 2002 +++ presentations/slides/soap/pythonsoap.xml Sun Apr 20 15:58:12 2003 @@ -17,7 +17,6 @@ <bullet>Supports 1999/2001 Schema</bullet> <bullet>SOAP with Attachments</bullet> <bullet>NO WSDL Support</bullet> -<bullet>www.soaplite.com</bullet> </list> <list> <bullet>pywebsvcs.sourceforge.net</bullet> Index: presentations/slides/soap/soap.xml diff -u presentations/slides/soap/soap.xml:1.1 presentations/slides/soap/soap.xml:1.2 --- presentations/slides/soap/soap.xml:1.1 Mon Jul 1 19:56:29 2002 +++ presentations/slides/soap/soap.xml Sun Apr 20 15:58:12 2003 @@ -1,10 +1,10 @@ <slide title="SOAP Messages"> <list> -<bullet>Envelope defines what is in the message</bullet> +<bullet>Envelope wraps what is in the message</bullet> <bullet>Encoding defines serialization</bullet> </list> <list marginleft="2em"> - <bullet>Strong Data typing Section 5 encoding</bullet> + <bullet>Strong Data typing 'Section 5' encoding</bullet> <bullet>Weak Data typing Literal encoding</bullet> <bullet>XML Schema data definition via WSDL</bullet> </list> Index: presentations/slides/soap/soapfault.xml diff -u presentations/slides/soap/soapfault.xml:1.1 presentations/slides/soap/soapfault.xml:1.2 --- presentations/slides/soap/soapfault.xml:1.1 Wed Oct 23 03:27:04 2002 +++ presentations/slides/soap/soapfault.xml Sun Apr 20 15:58:12 2003 @@ -2,19 +2,6 @@ <blurb>Errors in SOAP should be returned as SOAP Faults. A SOAP Fault contains specific information detailing the reason for the Fault. PEAR::SOAP provides a SOAP_Fault class to aid in returning faults.</blurb> -<blurb>Faults can be of four basic types: VersionMismatch, MustUnderstand, -Client and Server:</blurb> -<list> -<bullet>VersionMismatch: invalid namespace for the SOAP Envelope</bullet> -<bullet>MustUnderstand: a required header was not understood by the server</bullet> -<bullet>Client: the message sent by the client was not properly formed, or did -not contain the necessary information to fulfill the request.</bullet> -<bullet>Server: the message could not be processed</bullet> -</list> -<blurb>Faults can also contain other information, such as a -basic message describing the fault, the URI of the originator of the fault, and a -detail field that can be used to provide additional information on the fault. -</blurb> <example type="xml" fontsize='1.4em' title="SOAP Fault in a SOAP Message"> <![CDATA[<SOAP-ENV:Fault> @@ -36,5 +23,20 @@ </SOAP-ENV:Fault> ]]> </example> + +<blurb>Faults can be of four basic types: VersionMismatch, MustUnderstand, +Client and Server:</blurb> +<list> +<bullet>VersionMismatch: invalid namespace for the SOAP Envelope</bullet> +<bullet>MustUnderstand: a required header was not understood by the server</bullet> +<bullet>Client: the message sent by the client was not properly formed, or did +not contain the necessary information to fulfill the request.</bullet> +<bullet>Server: the message could not be processed</bullet> +</list> +<blurb>Faults can also contain other information, such as a +basic message describing the fault, the URI of the originator of the fault, and a +detail field that can be used to provide additional information on the fault. +</blurb> + </slide> Index: presentations/slides/soap/soapslides.kpf diff -u presentations/slides/soap/soapslides.kpf:1.4 presentations/slides/soap/soapslides.kpf:1.5 --- presentations/slides/soap/soapslides.kpf:1.4 Wed Oct 23 03:27:04 2002 +++ presentations/slides/soap/soapslides.kpf Sun Apr 20 15:58:12 2003 @@ -1,4 +1,4 @@ -<?xml version="1.0"?> +<?xml version="1.0" encoding="UTF-8"?> <!-- Komodo Project File - DO NOT EDIT --> <project kpf_version="2" name="soapslides"> <preference-set id="Unnamed Project 1"> @@ -8,19 +8,23 @@ <file name="tools.xml" url="tools.xml"> </file> <folder name="presentations"> -<file name="soap-phpcon-sf2002.xml" url="file:///D:/src/pres2/presentations/soap-phpcon-sf2002.xml"> +<file name="styles.css.php" url="styles.css.php"> </file> -<file name="soap.xml" url="file:///D:/src/pres2/presentations/soap.xml"> +<file name="slide1.xml" url="slide1.xml"> </file> -<file name="soapbc1.xml" url="file:///D:/src/pres2/presentations/soapbc1.xml"> +<file name="title.xml" url="title.xml"> </file> -<file name="soap-linuxworld-sf2002.xml" url="file:///D:/src/pres2/presentations/soap-linuxworld-sf2002.xml"> +<file name="soap-linuxworld-sf2002.xml" url="file:///C:/usr/src/pres2/presentations/soap-linuxworld-sf2002.xml"> </file> -<file name="styles.css.php" url="styles.css.php"> +<file name="soapbc1.xml" url="file:///C:/usr/src/pres2/presentations/soapbc1.xml"> </file> -<file name="slide1.xml" url="slide1.xml"> +<file name="soap-forumduphp-paris2002.xml" url="file:///C:/usr/src/pres2/presentations/soap-forumduphp-paris2002.xml"> </file> -<file name="title.xml" url="title.xml"> +<file name="soap.xml" url="file:///C:/usr/src/pres2/presentations/soap.xml"> +</file> +<file name="soap-phpcon-sf2002.xml" url="file:///C:/usr/src/pres2/presentations/soap-phpcon-sf2002.xml"> +</file> +<file name="soap-phpcon-ny2003.xml" url="file:///C:/usr/src/pres2/presentations/soap-phpcon-ny2003.xml"> </file> </folder> <folder name="Agenda's"> @@ -68,18 +72,8 @@ </file> <file name="soapenvelope.xml" url="soapenvelope.xml"> </file> -<file name="dime.xml" url="dime.xml"> -</file> -<file name="mime.xml" url="mime.xml"> -</file> <file name="usingsoap.xml" url="usingsoap.xml"> </file> -<file name="wsdl.xml" url="wsdl.xml"> -</file> -<file name="wsdlexample.xml" url="wsdlexample.xml"> -</file> -<file name="wsdlparts.xml" url="wsdlparts.xml"> -</file> <file name="other.xml" url="other.xml"> </file> <file name="other2.xml" url="other2.xml"> @@ -88,6 +82,16 @@ </file> <file name="protocols.xml" url="protocols.xml"> </file> +<file name="whatisgood.xml" url="whatisgood.xml"> +</file> +<file name="whatisbad.xml" url="whatisbad.xml"> +</file> +<file name="soapenvelope-simple-3.xml" url="soapenvelope-simple-3.xml"> +</file> +<file name="soapenvelope-simple-1.xml" url="soapenvelope-simple-1.xml"> +</file> +<file name="soapenvelope-simple-2.xml" url="soapenvelope-simple-2.xml"> +</file> </folder> <folder name="Implementations"> <file name="implementations.xml" url="implementations.xml"> @@ -98,6 +102,8 @@ </file> <file name="installation.xml" url="installation.xml"> </file> +<file name="nusoap.xml" url="nusoap.xml"> +</file> </folder> <folder name="Resources"> <file name="resources.xml" url="resources.xml"> @@ -134,6 +140,8 @@ </file> <file name="clientapi5.xml" url="clientapi5.xml"> </file> +<file name="simpleclient-run.xml" url="simpleclient-run.xml"> +</file> </folder> <folder name="Interoperability"> <file name="interop.xml" url="interop.xml"> @@ -156,6 +164,16 @@ </file> <file name="serverwsdl.xml" url="serverwsdl.xml"> </file> +<file name="wsdl.xml" url="wsdl.xml"> +</file> +<file name="wsdlexample.xml" url="wsdlexample.xml"> +</file> +<file name="wsdlparts.xml" url="wsdlparts.xml"> +</file> +<file name="disco.xml" url="disco.xml"> +</file> +<file name="uddi.xml" url="uddi.xml"> +</file> </folder> <folder name="Faults"> <file name="serverfault.xml" url="serverfault.xml"> @@ -180,6 +198,10 @@ </file> <file name="attachments3.xml" url="attachments3.xml"> </file> +<file name="mime.xml" url="mime.xml"> +</file> +<file name="dime.xml" url="dime.xml"> +</file> </folder> <folder name="Document Style"> <file name="document.xml" url="document.xml"> @@ -195,4 +217,40 @@ <file name="soapobjects1.xml" url="soapobjects1.xml"> </file> </folder> +<folder name="real scripts"> +<preference-set id=""> +</preference-set> +<file name="client.php" url="client.php"> +</file> +<file name="example_server.php" url="example_server.php"> +</file> +<file name="example_types.php" url="example_types.php"> +</file> +<file name="server.php" url="server.php"> +</file> +<file name="client-echostring-real.php" url="examples/client-echostring-real.php"> +</file> +<file name="client-echostring.php" url="examples/client-echostring.php"> +</file> +<file name="client-babelfish-real.php" url="examples/client-babelfish-real.php"> +<preference-set id=""> +</preference-set> +</file> +</folder> +<folder name="xml schema"> +<file name="schema1.xml" url="schema1.xml"> +</file> +<file name="datatypes1.xml" url="datatypes1.xml"> +</file> +<file name="schema2.xml" url="schema2.xml"> +</file> +<file name="schema2-xml.xml" url="schema2-xml.xml"> +</file> +<file name="schema1-xml.xml" url="schema1-xml.xml"> +</file> +<file name="schemasummary.xml" url="schemasummary.xml"> +</file> +</folder> +<file name="break.xml" url="break.xml"> +</file> </project> Index: presentations/slides/soap/wsdlparts.xml diff -u presentations/slides/soap/wsdlparts.xml:1.1 presentations/slides/soap/wsdlparts.xml:1.2 --- presentations/slides/soap/wsdlparts.xml:1.1 Tue Oct 22 04:07:56 2002 +++ presentations/slides/soap/wsdlparts.xml Sun Apr 20 15:58:12 2003 @@ -12,14 +12,15 @@ xmlns:s="http://soapinterop.org/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">]]> </example> +<example type="xml" fontsize='1.4em' title="Imports"> +<![CDATA[<import location="http://site.com/import1B.wsdl" + namespace="http://site.com/namespace/"/>]]> +</example> <example type="xml" fontsize='1.4em' title="Data Types"> <![CDATA[<types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapinterop.org/xsd"> - <import location="http://site.com/import1B.wsdl" - namespace="http://site.com/namespace/"/> - <complexType name="SOAPStruct"> <all> <element name="varString" type="string"/> @@ -79,7 +80,6 @@ binding="tns:InteropTestSoapBinding"> <soap:address location="http://host.com/server.php"/> </port> -</service> -]]> +</service>]]> </example> </slide> Index: presentations/soap-phpcon-ny2003.xml +++ presentations/soap-phpcon-ny2003.xml <presentation jskeyboard="1" template="php" logo2="/pres2/presentations/slides/soap/activestate_logo.gif" navbarbackground="#A68C53" backgroundfixed="true" backgroundimage = "/pres2/presentations/slides/soap/activestate_background.jpg" backgroundcol="#EFECDD" navsize="1.4em"> <title>Web Services Tutorial</title> <topic>SOAP</topic> <event>ActiveState Corporation</event> <location>PHPCON, NYC, NY</location> <date>April 23, 2003</date> <speaker>Shane Caraveo</speaker> <company>ActiveState Corporation</company> <email>shanec@ActiveState.com</email> <url></url> <slide>slides/soap/slide1.xml</slide> <slide>slides/soap/agenda2.xml</slide> <slide>slides/soap/simpleclient-run.xml</slide> <slide>slides/soap/whatissoap.xml</slide> <slide>slides/soap/whatisgood.xml</slide> <slide>slides/soap/whatisbad.xml</slide> <slide>slides/soap/soaphistory.xml</slide> <slide x="envelope xml example1">slides/soap/soapenvelope-simple-1.xml</slide> <slide x="envelope xml example2">slides/soap/soapenvelope-simple-2.xml</slide> <slide x="envelope xml example3">slides/soap/soapenvelope-simple-3.xml</slide> <slide x="doclit xml example">slides/soap/document.xml</slide> <slide x="message description">slides/soap/soap.xml</slide> <slide x="header xml example">slides/soap/headers.xml</slide> <slide x="fault desc and example">slides/soap/soapfault.xml</slide> <slide x="attachments description">slides/soap/mime.xml</slide> <slide x="dime description">slides/soap/dime.xml</slide> <slide x="transport description">slides/soap/protocols.xml</slide> <slide x="simple schema data types">slides/soap/datatypes1.xml</slide> <slide x="xml schema part1">slides/soap/schema1.xml</slide> <slide x="xml schema part1">slides/soap/schema1-xml.xml</slide> <slide x="xml schema part2">slides/soap/schema2.xml</slide> <slide x="xml schema part2">slides/soap/schema2-xml.xml</slide> <slide x="xml schema summary">slides/soap/schemasummary.xml</slide> <slide x="wsdl description">slides/soap/wsdl.xml</slide> <slide x="wsdl xml example">slides/soap/wsdlparts.xml</slide> <slide x="wsdl benefits">slides/soap/usingsoap.xml</slide> <slide x="disco description">slides/soap/disco.xml</slide> <slide x="uddi description">slides/soap/uddi.xml</slide> <slide>slides/soap/interop.xml</slide> <slide>slides/soap/interop2.xml</slide> <slide>slides/soap/interop3.xml</slide> <slide x="specs">slides/soap/other.xml</slide> <slide x="more specs">slides/soap/other2.xml</slide> <slide x="even more specs">slides/soap/other3.xml</slide> <slide>slides/soap/implementations.xml</slide> <slide>slides/soap/pear.xml</slide> <slide>slides/soap/phpsoap.xml</slide> <slide>slides/soap/nusoap.xml</slide> <slide>slides/soap/break.xml</slide> <slide>slides/soap/simpleclient1.xml</slide> <slide>slides/soap/simpleclient2.xml</slide> <slide>slides/soap/anatomyclient1.xml</slide> <slide>slides/soap/anatomyclient2.xml</slide> <slide>slides/soap/anatomyclient3.xml</slide> <slide>slides/soap/clientapi1.xml</slide> <slide>slides/soap/clientapi2.xml</slide> <slide>slides/soap/clientapi3.xml</slide> <slide>slides/soap/document2.xml</slide> <slide>slides/soap/document3.xml</slide> <slide>slides/soap/document4.xml</slide> <slide>slides/soap/headers2.xml</slide> <slide>slides/soap/attachments2.xml</slide> <slide>slides/soap/attachments3.xml</slide> <slide>slides/soap/clientapi4.xml</slide> <slide>slides/soap/soapsmtp.xml</slide> <slide>slides/soap/wsdlclient.xml</slide> <slide>slides/soap/proxygen.xml</slide> <slide>slides/soap/clientapi5.xml</slide> <slide>slides/soap/server1.xml</slide> <slide>slides/soap/server2.xml</slide> <slide>slides/soap/serverapi1.xml</slide> <slide>slides/soap/server3.xml</slide> <slide>slides/soap/soapfault2.xml</slide> <slide>slides/soap/serverheader.xml</slide> <slide>slides/soap/serveremail.xml</slide> <slide>slides/soap/serverwsdl.xml</slide> <slide>slides/soap/soapobjects1.xml</slide> <slide>slides/soap/soapresources.xml</slide> <slide>slides/soap/resources.xml</slide> </presentation> Index: presentations/slides/soap/break.xml +++ presentations/slides/soap/break.xml <slide title="Intermission"> <blurb align="center" textcolor="red">I need more coffee.</blurb> <blurb>This hopefully is a good time to take a break before we get into the more interesting stuff!</blurb> </slide> Index: presentations/slides/soap/datatypes1.xml +++ presentations/slides/soap/datatypes1.xml <slide title="SOAP Data Types"> <blurb> In the SOAP envelopes I showed data type encoding. </blurb> <example type="xml" fontsize='1.4em' title="SOAP parameter with data type"> <![CDATA[<inputString xsi:type="xsd:string">hello world!</inputString>]]> </example> <blurb> SOAP provides 16 basic data types, and 28 derived data types through the use of XML Schema. PHP obviously does not have that many data types, so many SOAP types are mapped into PHP types, somewhat arbitrarily. </blurb> <example type="text" fontsize='1.4em' title="SOAP types mapped to PHP types"> <![CDATA[ 'http://www.w3.org/2001/XMLSchema' => array( 'string' => 'string', 'boolean' => 'boolean', 'float' => FLOAT, 'double' => FLOAT, 'decimal' => FLOAT, 'duration' => 'integer', 'dateTime' => 'string', 'time' => 'string', 'date' => 'string', 'gYearMonth' => 'integer', 'gYear' => 'integer', 'gMonthDay' => 'integer', 'gDay' => 'integer', 'gMonth' => 'integer', 'hexBinary' => 'string', 'base64Binary' => 'string', // derived datatypes 'normalizedString' => 'string', 'token' => 'string', 'language' => 'string', 'NMTOKEN' => 'string', 'NMTOKENS' => 'string', 'Name' => 'string', 'NCName' => 'string', 'ID' => 'string', 'IDREF' => 'string', 'IDREFS' => 'string', 'ENTITY' => 'string', 'ENTITIES' => 'string', 'integer' => 'integer', 'nonPositiveInteger' => 'integer', 'negativeInteger' => 'integer', 'long' => 'integer', 'int' => 'integer', 'short' => 'integer', 'byte' => 'string', 'nonNegativeInteger' => 'integer', 'unsignedLong' => 'integer', 'unsignedInt' => 'integer', 'unsignedShort' => 'integer', 'unsignedByte' => 'integer', 'positiveInteger' => 'integer', 'anyType' => 'string', 'anyURI' => 'string', 'QName' => 'string' ) ]]> </example> </slide> Index: presentations/slides/soap/disco.xml +++ presentations/slides/soap/disco.xml <slide title="DISCO"> <blurb textcolor="red">Macho Macho Man...</blurb> <list title="Discovery of Web Services"> <bullet>DISCO is a Microsoft technology for publishing and discovering Web Services</bullet> <bullet>Provides a way to discover and retrieve WSDL description of services on remote machines</bullet> <bullet>Only minimal support in PHP</bullet> </list> <example fontsize="1.4em" type="xml" title="DISCO Example"> <![CDATA[<?xml version="1.0"?> <disco:discovery xmlns:disco="http://schemas.xmlsoap.org/disco/" xmlns:scl="http://schemas.xmlsoap.org/disco/scl/"> <!-- reference to other DISCO document --> <disco:discoveryRef ref="http://localhost/related-services/default.disco"/> <!-- reference to WSDL and documentation --> <scl:contractRef ref="http://localhost/server.php?wsdl" docRef="http://localhost/interface-docs.html"/> </disco:discovery>]]> </example> <blurb textcolor="red">Confusion, Confusion, Confusion. </blurb> <blurb>MS Says 'The [docRef is the] URL for a XML Web service implementing the service description specified by the ref attribute.', then again says 'contractRef has two attributes, ref and docRef, which point to the WSDL and documentation files for a given Web Service.' They provide examples showing both on MSDN. (4/20/2003)</blurb> </slide> Index: presentations/slides/soap/nusoap.xml +++ presentations/slides/soap/nusoap.xml <slide title="NuSOAP"> <list title="The good parts"> <bullet>SOAP 1.1</bullet> <bullet>Interoperability testing done with all major implementations</bullet> <bullet>Script based Client and Server</bullet> <bullet>RPC/Encoded and Document/Literal</bullet> <bullet>HTTP, HTTPS, able to add other transports</bullet> <bullet>Supports 1999/2001 Schema</bullet> <bullet>WSDL Generation/Support</bullet> <bullet>Not part of PEAR (good/bad?)</bullet> <bullet>Better Schema support than PEAR::SOAP (?)</bullet> <bullet>XML de/serialization more optimized than PEAR::SOAP</bullet> </list> <list title="The bad parts"> <bullet>SOAP 1.2 support not finished (?)</bullet> <bullet>No Attachment support (?)</bullet> <bullet>Probably not good for long running processes</bullet> <bullet>PHP 4 Object support</bullet> <bullet>No streaming XML pull parser</bullet> <bullet>Written entirely in script</bullet> </list> </slide> Index: presentations/slides/soap/schema1-xml.xml +++ presentations/slides/soap/schema1-xml.xml <slide title="XML Schema: Part 1"> <blurb>Here we have the XML that would match the Schema. </blurb> <example type="xml" fontsize='1.4em' title="ArrayOfString"> <![CDATA[<inputStringArray xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[2]" SOAP-ENC:offset="[0]"> <item xsi:type="xsd:string">good</item> <item xsi:type="xsd:string">bad</item> </inputStringArray>]]> </example> <example type="xml" fontsize='1.4em' title="SOAPStruct"> <![CDATA[<inputStruct xsi:type="ns5:SOAPStruct"> <varString xsi:type="xsd:string">arg</varString> <varInt xsi:type="xsd:int">34</varInt> <varFloat xsi:type="xsd:float">325.325</varFloat> </inputStruct>]]> </example> </slide> Index: presentations/slides/soap/schema1.xml +++ presentations/slides/soap/schema1.xml <slide title="XML Schema: Part 1"> <blurb>Schema is Scary. The following Schema defines a couple complex data types, an array of strings, an object called SOAPStruct, and an array of SOAPStruct objects. This Schema comes from a WSDL for an RPC/Encoded SOAP service. </blurb> <example type="xml" fontsize='1.4em' title="XML Schema"> <![CDATA[<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapinterop.org/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOfstring"> <complexContent> <restriction base="SOAP-ENC:Array"> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/> </restriction> </complexContent> </complexType> <complexType name="SOAPStruct"> <all> <element name="varString" type="string"/> <element name="varInt" type="int"/> <element name="varFloat" type="float"/> </all> </complexType> <complexType name="ArrayOfSOAPStruct"> <complexContent> <restriction base="SOAP-ENC:Array"> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="s:SOAPStruct[]"/> </restriction> </complexContent> </complexType> </schema> ]]> </example> </slide> Index: presentations/slides/soap/schema2-xml.xml +++ presentations/slides/soap/schema2-xml.xml <slide title="XML Schema: Part 2"> <blurb>Here we have XML that reflects the Doc/Lit Schema. </blurb> <example type="xml" fontsize='1.4em' title="echoStringParam"> <![CDATA[<echoStringParam xmlns="http://soapinterop.org/xsd"> Hello World </echoStringParam>]]> </example> <example type="xml" fontsize='1.4em' title="echoStringParam"> <![CDATA[<ns4:echoStringArrayParam xmlns:ns4="http://soapinterop.org/xsd"> <ns4:item>good</ns4:item> <ns4:item>bad</ns4:item> </ns4:echoStringArrayParam>]]> </example> </slide> Index: presentations/slides/soap/schema2.xml +++ presentations/slides/soap/schema2.xml <slide title="XML Schema: Part 2"> <blurb>Schema can define similar types in multiple ways. Here we define an Array of Strings, much like the last Schema, but perhaps a bit easier to read. Some of the differences here do affect how one might generate or parse XML. This Schema comes from a WSDL for a Document/Literal SOAP service. </blurb> <example type="xml" fontsize='1.4em' title="XML Schema"> <![CDATA[<schema targetNamespace="http://soapinterop.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd1="http://soapinterop.org/xsd" elementFormDefault="qualified" > <complexType name="ArrayOfstring_literal"> <sequence> <element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/> </sequence> </complexType> <complexType name="SOAPStruct"> <all> <element name="varFloat" type="xsd:float"/> <element name="varInt" type="xsd:int"/> <element name="varString" type="xsd:string"/> </all> </complexType> <element name="echoStringParam" type="xsd:string"/> <element name="echoStringReturn" type="xsd:string"/> <element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/> <element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/> <element name="echoStructParam" type="xsd1:SOAPStruct"/> <element name="echoStructReturn" type="xsd1:SOAPStruct"/> </schema> ]]> </example> </slide> Index: presentations/slides/soap/schemasummary.xml +++ presentations/slides/soap/schemasummary.xml <slide title="XML Schema"> <list> <bullet>Schema *IS* Scary</bullet> <bullet>Provides extensibility</bullet> <bullet>Defines Data Types</bullet> <bullet>Namespaces allow for conflicting element names</bullet> <bullet>Can be imported by other XML documents</bullet> </list> <list> <bullet>Scripting Langauges generaly have poor support for Schema</bullet> <bullet>SOAP and WSDL use Schema heavily</bullet> <bullet>New LibXML extension will help PHP SOAP support</bullet> </list> </slide> Index: presentations/slides/soap/serverfault2.xml +++ presentations/slides/soap/serverfault2.xml <slide title="SOAP Faults"> <blurb>Errors in SOAP should be returned as SOAP Faults. A SOAP Fault contains specific information detailing the reason for the Fault. PEAR::SOAP provides a SOAP_Fault class to aid in returning faults.</blurb> <blurb>Faults can be of four basic types: VersionMismatch, MustUnderstand, Client and Server:</blurb> <list> <bullet>VersionMismatch: invalid namespace for the SOAP Envelope</bullet> <bullet>MustUnderstand: a required header was not understood by the server</bullet> <bullet>Client: the message sent by the client was not properly formed, or did not contain the necessary information to fulfill the request.</bullet> <bullet>Server: the message could not be processed</bullet> </list> <blurb>Faults can also contain other information, such as a basic message describing the fault, the URI of the originator of the fault, and a detail field that can be used to provide additional information on the fault. </blurb> <example type="xml" fontsize='1.4em' title="SOAP Fault in a SOAP Message"> <![CDATA[<SOAP-ENV:Fault> <faultcode xsi:type="xsd:QName"> SOAP-ENV:Client </faultcode> <faultstring xsi:type="xsd:string"> You sent an empty string </faultstring> <faultactor xsi:type="xsd:anyURI"> urn:SOAP_Example_Server </faultactor> <detail xsi:type="xsd:string"/> </SOAP-ENV:Fault> ]]> </example> <example type="php" fontsize='1.4em' title="Server that returns a SOAP Fault"> <![CDATA[<?php require_once 'SOAP/Server.php'; $server = new SOAP_Server; class SOAP_Example_Server { var $method_namespace = 'urn:SOAP_Example_Server'; function echoString($inputString) { if (!$inputString) { $faultcode = 'Client'; $faultstring = 'You sent an empty string'; $faultactor = $this->method_namespace; $detail = NULL; return new SOAP_Fault($faultstring, $faultcode, $faultactor, $detail); } return $inputString; } } $soapclass = new SOAP_Example_Server(); $server->addObjectMap($soapclass); $server->service($HTTP_RAW_POST_DATA); ?>]]> </example> <example type="php" fontsize='1.4em' title="Client for Example Server"> <![CDATA[<?php require_once 'SOAP/Client.php'; $soapclient = new SOAP_Client( 'http://localhost/SOAP/example/exampleserver.php'); $result = $soapclient->call('echoStringSimple', array('inputString' => NULL), array('namespace' => 'urn:SOAP_Example_Server'); if (PEAR::isError($result)) { // handle the error condition echo $result->getMessage(); } ?>]]> </example> </slide> Index: presentations/slides/soap/simpleclient-run.xml +++ presentations/slides/soap/simpleclient-run.xml <slide title="How Simple?"> <example title="BabelFish Client" filename="examples\client-babelfish.php" type="php" fontsize='1.4em' /> <example hide="1" result="1" fontsize="1.4em" type="text"> <![CDATA[<?php $base = "$PHP_SELF{$_SERVER['PATH_INFO']}"; $action = isset($_SERVER['QUERY_STRING'])?"$base?{$_SERVER['QUERY_STRING']}":$base; // time in vancouver, assuming I'm in NYC $time = time()-(3*60*60); $default = "It's ".date('g:i A',$time)." in Vancouver, thank God for Coffee!"; $text = isset($_GET['text'])?$_GET['text']:$default; echo <<<END <form action="$action" method=GET> Text: <input type="text" name="text" value="$text"> <select name="translation"> <option value="en_de">English -> German</option> <option value="en_fr">English -> French</option> <option value="en_it">English -> Italian</option> <option value="en_pt">English -> Portugese</option> <option value="en_es" SELECTED>English -> Spanish</option> <option value="fr_en">French -> English</option> <option value="it_en">German -> English</option> <option value="pt_en">Italian -> English</option> <option value="ru_en">Russian -> English</option> <option value="es_en">Spanish -> English</option> </select> <input type=submit value=" Go! "> </form> END; ?>]]> </example> <example title="BabelFish Says..." filename="examples\client-babelfish-real.php" hide="1" result="1" type="html" fontsize='1.4em' /> </slide> Index: presentations/slides/soap/soapenvelope-simple-1.xml +++ presentations/slides/soap/soapenvelope-simple-1.xml <slide title="SOAP Envelope: Part 1"> <blurb>A SOAP Envelope at it's simplest implementation. This envelope defines that it is a SOAP message, with a single method called 'echoString', which is given a single parameter, 'inputString'.</blurb> <example type="xml" fontsize='1.4em' title="SOAP Envelope"> <![CDATA[<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Body> <method:echoString xmlns:method="http://soapinterop.org/"> <inputString>hello world!</inputString> </method:echoString> </Body> </Envelope>]]> </example> </slide> Index: presentations/slides/soap/soapenvelope-simple-2.xml +++ presentations/slides/soap/soapenvelope-simple-2.xml <slide title="SOAP Envelope: Part 2"> <blurb>But we want to be more explicit, defining this as a SOAP RPC call. We can also define namespaces for the message in the Envelope itself. Making the namespaces explicit is not necessary, but can aid in [human] readability.</blurb> <example type="xml" fontsize='1.4em' title="SOAP Envelope"> <![CDATA[<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:method="http://soapinterop.org/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <method:echoString> <inputString>hello world!</inputString> </method:echoString> </SOAP-ENV:Body> </SOAP-ENV:Envelope>]]> </example> </slide> Index: presentations/slides/soap/soapenvelope-simple-3.xml +++ presentations/slides/soap/soapenvelope-simple-3.xml <slide title="SOAP Envelope: Part 3"> <blurb>As a last part, we want to provide explicit data typing. The following envelope is in a format known as RPC/Encoded.</blurb> <example type="xml" fontsize='1.4em' title="SOAP Envelope"> <![CDATA[<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="http://soapinterop.org/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <method:echoString> <inputString xsi:type="xsd:string">hello world!</inputString> </method:echoString> </SOAP-ENV:Body> </SOAP-ENV:Envelope>]]> </example> <blurb>Data typing does not necessarily have to happen in the SOAP message. XML Schema and WSDL can provide that information, or the client can simply dynamicaly handle the data types as it sees fit.</blurb> </slide> Index: presentations/slides/soap/uddi.xml +++ presentations/slides/soap/uddi.xml <slide title="UDDI"> <blurb textcolor="red">"Where Are You Going, Where Have You Been?"</blurb> <list title="Universal Description, Discovery and Integration of Web Services"> <bullet>Developed by OASIS (oasis-open.org)</bullet> <bullet>As the name says, provides Descriptions of services, and ways to find and use them.</bullet> <bullet>No support built in to PHP, but...UDDI is used via SOAP.</bullet> </list> <blurb fontsize="1.5em">The UDDI specifications define Web service interfaces to allow programmatic access to the UDDI registry information. The UDDI API is based on SOAP (Simple Object Access Protocol) which provides a synchronous RPC mechanism to UDDI. All UDDI registry Operator sites will support all the UDDI API calls. The UDDI API is divided into two logical parts:</blurb> <list> <bullet fontsize="1em">Inquiry API: Provide programs with the capability to locate candidate businesses, Web services and then services, and drill into the specifics based on overview information provided in the initial calls. The Inquiry API functions are exposed as SOAP messages over HTTP. No authentication is required to make use of the Inquiry API functions.</bullet> <bullet fontsize="1em">Publisher API: Enables programs to save and delete each of four data types supported by UDDI. Authenticated access is required to use the Publisher API, i.e. the user must first sign-up with one or more operator sites to establish user credentials.</bullet> </list> <blurb fontsize="1em">Source: http://wwws.sun.com/software/xml/developers/uddi/</blurb> </slide> Index: presentations/slides/soap/whatisbad.xml +++ presentations/slides/soap/whatisbad.xml <slide title="What is SOAP Bad for?"> <blurb>SOAP has taken the world by storm, or so we should believe, but certainly has changed some things. </blurb> <blurb textcolor="red">Unfortunately, brooklynbridge.com failed and layed everyone off.</blurb> <blurb>There are reasons you shouldn't use SOAP.</blurb> <list> <bullet>Normal application logic</bullet> <bullet>Dynamic content retrieval in web pages</bullet> <bullet>Because it's there</bullet> <bullet>Taking showers, PLEASE USE SOAP</bullet> </list> <blurb textcolor="red">Use, don't Abuse</blurb> </slide> Index: presentations/slides/soap/whatisgood.xml +++ presentations/slides/soap/whatisgood.xml <slide title="What is SOAP Good for?"> <blurb>SOAP will take the world by storm and change everything, SOAP will be used everywhere, everyone will talk to everyone, and we'll all live happily ever after. </blurb> <blurb textcolor="red">Shh...I've got a bridge in Brooklyn...any takers?</blurb> <blurb>But really, there are some good things about SOAP.</blurb> <list> <bullet>Cross language communication</bullet> <bullet>Exchanging information between two dissimilar systems</bullet> <bullet>Content distribution</bullet> <bullet>Content retrieval (then caching)</bullet> <bullet>Occasional events, such as single sign-on</bullet> </list> </slide> Index: presentations/slides/soap/examples/client-babelfish-5.php +++ presentations/slides/soap/examples/client-babelfish-5.php <?php include("SOAP/Client.php"); $wsdl_url = 'http://www.xmethods.net/sd/2001/BabelFishService.wsdl'; $ret = new SOAP_WSDL($wsdl_url)->getProxy()->BabelFish('en_it','Hello World!'); print_r($ret); ?> Index: presentations/slides/soap/examples/client-babelfish-real.php +++ presentations/slides/soap/examples/client-babelfish-real.php <?php include("SOAP/Client.php"); $WSDL =& new SOAP_WSDL('http://www.xmethods.net/sd/2001/BabelFishService.wsdl'); $soapclient =& $WSDL->getProxy(); $time = time()-(3*60*60); $default = "It's ".date('g:i A',$time)." in Vancouver, thank God for Coffee!"; $text = isset($_GET['text'])?$_GET['text']:$default; $trans = isset($_GET['translation'])?$_GET['translation']:'en_it'; $soapclient->setOpt('trace',1); $ret = $soapclient->BabelFish($trans,$text); print htmlentities($ret,ENT_NOQUOTES,$soapclient->__result_encoding); ?> Index: presentations/slides/soap/examples/client-babelfish.php +++ presentations/slides/soap/examples/client-babelfish.php <?php include("SOAP/Client.php"); $wsdl_url = 'http://www.xmethods.net/sd/2001/BabelFishService.wsdl'; $WSDL =& new SOAP_WSDL($wsdl_url); $soapclient =& $WSDL->getProxy(); echo $soapclient->BabelFish('en_it','Hello World!'); ?> Index: presentations/slides/soap/examples/client-echostring-real.php +++ presentations/slides/soap/examples/client-echostring-real.php <?php include("SOAP/Client.php"); $wsdlurl = "http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}/".dirname($PHP_SELF)."/presentations/slides/soap/server.php?wsdl"; $WSDL =& new SOAP_WSDL($wsdlurl); $soapclient =& $WSDL->getProxy(); $text = isset($_GET['text'])?$_GET['text']:"Hello World"; $ret =& $soapclient->echoStringSimple($text); print_r($ret); ?> Index: presentations/slides/soap/examples/client-echostring.php +++ presentations/slides/soap/examples/client-echostring.php <?php include("SOAP/Client.php"); $WSDL =& new SOAP_WSDL('http://localhost/server.php?wsdl'); $soapclient =& $WSDL->getProxy(); $ret = $soapclient->echoStringSimple('Hello World'); print_r($ret); ?>
« previous php.pres (#630) next »