new marshaller instance ensures we use marshalling properties and correct validation...
[vamsas.git] / src / uk / ac / vamsas / client / VorbaXmlBinder.java
index ca986cb..9462494 100644 (file)
@@ -167,7 +167,8 @@ public class VorbaXmlBinder implements UnmarshalListener {
     if (doc.__vorba==null)
       doc.__vorba = vorba;
     doc.__ensure_instance_ids(); // this may take a while. Do we allow for cyclic references ? 
-    doc.marshal(outstream);
+    Marshaller mshl = new Marshaller(outstream);
+    mshl.marshal(doc);
 
   }
   /**