You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ramachandran Janakiraman <rj...@modulant.com> on 2002/04/11 19:24:32 UTC

ArraySerializer.

Here is the the sample code for the arraySerializer,
,
	 MessageContext msgC = getMessageContext();
              int[]  jobIds = {1000, 1001, 1002, 1003};

              ArraySerializer ser = new ArraySerializer();
              QName qName = new QName("urn:transform", "Array");
              Writer sw = new StringWriter();
              SerializationContext sc = new SerializationContextImpl(
sw, msgC );
              ser.serialize(qName, null, jobIds, sc);
              System.out.println("serialized " + sw.toString());

Ram.