Ensure toXml is passed true when called by a service.

Services need to pass true to toXml so that the full XML is correctly
generated.