Part of the SOAP website. Updated: 4/1/98; 10:26:54 AM.

SOAP: Example 2

Here's a simple SOAP request

POST /soap HTTP/1.0
User-Agent: Frontier/5.0.1 (WinNT)
Host: betty.userland.com
Content-Type: text/xml
Content-length: 493

<?XML VERSION="1.0"?> <methodCall> <methodName>signGuestbook</methodName> <params> <param> <name>commentx</name> <value>My name is Dave Winer and I'm testing Betty from UserLand Software. It's 3/25/98; 2:40:38 PM here right now.</value> </param> <param> <name>mail</name> <value>dave@scripting.com</value> </param> <param> <name>url</name> <value>http://www.scripting.com/frontier5/xml/plan.html</value> </param> </params> </methodCall>

Here's the response

HTTP/1.1 200 OK
Connection: close
Content-Length: 435
Content-Type: text/xml
Date: Wed, 25 Mar 1998 22:47:52 GMT

<?XML VERSION="1.0"?> <methodResponse> <fault> <struct> <data> <member> <name>errorString</name> <value> <string>Can't evaluate the expression because the name "comments" hasn't been defined.</string> </value> </member> <member> <name>errorNum</name> <value> <int>4</int> </value> </member> </data> </struct> </fault> </methodResponse>

CGI interface

This application is on the air now. You can view the guest book registry via a CGI interface.


© Copyright 1996-97 UserLand Software. This page was last built on 4/1/98; 10:26:54 AM. It was originally posted on 3/30/98; 12:24:39 PM. Webmaster: dave@scripting.com.