I don't know all the details of a church wedding but for a registry wedding you are suppose to be in the country at least ten days before the wedding when you make the application to marry in person.
I have heard/read of a few people where one or both of the Couple were not in the country or at least the office at the time.

A lot of research needs to be made, and sometimes asking can you apply when you are there the trip before the wedding?