SOAP
(Simple Object Access Protocol)
Connect to our Linucs tool  
Connect to our Sweet2 tool  
Connect to our LiGraph tool  
Home

 

What is SOAP ?
SOAP, the Simple Object Access Protocol, is the powerhouse of web services. It's a highly adaptable, 
object-oriented protocol that exists in over 80 implementations on every popular platform, including 
AppleScript, JavaScript, and Cocoa. It provides a flexible communication layer between applications, 
regardless of platform and location. 

 

Where can I get more information
(If you know bette links - mail me.)
The best source of information is located at 
http://www.w3.org/TR/SOAP/ 
and http://www.w3schools.com/soap/default.asp 
and http://www.xml.com/pub/a/2000/02/09/feature/. 



PHP and SOAP  http://developer.apple.com/internet/webservices/soapphp.html .
 http://dietrich.ganx4.com/nusoap/ 

 

Are there any books ?
Yes - loads of but I cannot recommend one.

 

Are there any examples?
Yes - if you want to offer a function you need to run a 'server'.
This server is called by a client.

Client --request--> Server 
Client <--answer--  Server

It is independend in which language the client or server is programmed.

 

Example 'Hello World'
You need this php include files: phpsoap.tgz The nusoap.php is the only file which is included. 

call_hello.php     <------------------> hello.php  

 

Example with parameter

Call the function addieren(\$string) at www.dkfz-heidelberg.de/.../server.php

Client --request ("String")--> Server\
                                      computation
Client <--answer ("String")--  Server/


client.php    <------------------> server.php 

 

 

Example: Linucs server side function
 Look at the server source (function_soap.php) 

 

Developing
Switch Debugging ON:
SERVER:

.../function/call_foo.php?Debug=1

CLIENT:
echo 'Request: <xmp>'.$client->request.'</xmp>';
echo 'Response: <xmp>'.$client->response.'</xmp>';
echo 'Debug log: <pre>'.$client->debug_str.'</pre>';

 

PHP-Server
For people who want to offer functions by PHP -
make sure that in php.ini the following value is set:

; Always populate the $HTTP_RAW_POST_DATA variable.                               
always_populate_raw_post_data = On


Questions or remarks, please mail Andreas Bohne