often the book of revelation is its own dictionary...
for most of revelation 12 the woman clearly represents what we would call 'the church'...or the body of christ...
by analogy the harlot in revelation 17 is also a church body...in this case an idolatrous false church...and the fact that she rides the beast shows that this is an official state church...