Sometimes the default configuration for Remote Web Workplace does not set up use of the RDP gateway by default. The following documentation:
http://technet.microsoft.com/en-us/library/cc770545.aspx
discusses a group policy setting which fixes this nicely.