When using a WMS server on a specific port, the port was not written to the DGML file from the MapWizard.