Use XML::LibXML instead of XML::Simple. Use $request variable. Testing pseudo credentials.