in reply to generate XML command front to package
You could also have a look at XML-RPC, it's more lightweight than SOAP, but of course a bit less versatile.
Hope this helps, -gjb-