The SCPD URL was being set after marshalling the XML, and thus coming out blank. Now works on my Samsung TV, and likely fixes some issues reported by others in #2648.