Do you mean a raw xml-request, or a proper soap/xml request?
either way, you can consume/expose soap-webservices easily, just you have to know the wsdl.
if it's something really specific, perhaps you can use some actions from "HttpRequestHandler"
at last if above does not suit your use-case (because those are all server-side) there is nothing to restrict you to use the javascript-functionality.