Archive for December, 2009

SOAP Fault & HTTP Status Code

December 20th, 2009

What should be HTTP status code of response containing SOAP Fault (codes are defined in RFC 2616 HTTP/1.1 Section 10)?

From SOAP 1.1 Specification:
In case of a SOAP error while processing the request, the SOAP HTTP server MUST issue an HTTP 500 “Internal Server Error” response and include a SOAP message in the response containing a SOAP Fault element (see section 4.4) indicating the SOAP processing error.

What if there is no SOAP error while processing/SOAP processing error? It is just some standard business error (customer not found for example)?

From WS-I Basic profile:
An INSTANCE MUST use a “500 Internal Server Error” HTTP status code if the response message is a SOAP Fault.

This is much more clear.

So at least there are some links to answer when somebody asks again for Faults delivered with 200 OK status…

First post

December 20th, 2009

This is first post, just to see if WordPress (that thing this site is running on) is working correctly.

Actually i first tried WordPress in VirtualBox, just to be sure what it is. Because for Virtual Box I did not found any ready made appliance with pre-installed WordPress (and for VMware there was only some very old appliance with WordPress 2.2) i decided to try to install everything myself.

Luckily it is easy and well documented. Just in case I will need it in future summary is below:

  1. Download & install VirtualBox
  2. Download & install Ubuntu 9.10 CD image into VirtualBox (it is interesting that 64bit version for Intell hw is  named ubuntu-9.10-desktop-amd64.iso,  reason is probably because amd came with this 64bit architecture first…)
  3. Install Apache and MySQL with command
    sudo tasksel install lamp-server
    (detailed tutorial is in Ubuntu documentation)
  4. Install WordPress and configure it for new blog
    1. sudo apt-get install wordpress php5-gd
      (installation directory is /usr/share/wordpress)
    2. sudo ln -s /usr/share/wordpress /var/www/wordpress
      (symbolic link for Apache)
    3. sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
      (setup of database)
    4. Go to http://localhost/wordpress and finish setup of blog itself

    (detailed tutorial is again in Ubuntu documentation)

Currently WordPress seems very good. Definitely better than hand coding whole site in html as it was years (was it really last century?) before.