You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by yogesh palavalli <yo...@varros.com> on 2001/04/12 00:48:47 UTC

Complex data structure

I have the following data structure:

  Vector of Node Objects.

  Node Class:  Attribute: Vector Field;

  So, basically I want to pass a Vector of Node objects which contains a
vector field whose elements are Strings.

I am using the following code:

SOAPMappingRegistry smr = new SOAPMappingRegistry();
 BeanSerializer beanSer = new BeanSerializer();
 VectorSerializer vectSer = new VectorSerializer();
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
                 new QName("urn:xml-soap-datastruct", "x:node"),
                 Node.class, beanSer, beanSer);
smr.mapTypes(Constants.NS_URI_SOAP_ENC,new QName("urn:xml-soap-datastruct",
"java.util.Vector"),
java.util.Vector.class, vectSer, vectSer);

Is this correct?

Thanks,
Sriram