in reply to returning Fault response in XML::Compile::SOAP::HTTPDaemon

Mark Overmeer sent me a solution:

return +{ PolicyException => { faultcode => pack_type(SOAP11ENV, 'Server') , faultstring => 'policy exception' , detail => { messageId => $error_code , text => $error_message , variables => [ $error_code, $error_message, ] } } };

Thanks Mark :-)