Dig a cathole, use a wag bag, or bring along a portable toilet - these are the 3 primary methods for using the bathroom while wild camping or boondocking, at least when it comes to dealing with #2.