PDA

View Full Version : array of complex type



hanso
May 18th, 2006, 02:37 PM
hello

i want to call a webservice with an array of complex types.
calling a single complex type i solved:


public class AxisPortProxyFactoryBean extends JaxRpcPortProxyFactoryBean {

protected void postProcessJaxRpcService(Service service) {
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.createTypeMapping();
registerBeanMapping(mapping, Person.class, "Person");
registry.register("", mapping);
}

protected void registerBeanMapping(TypeMapping mapping, Class type, String name) {
QName qName = new QName("http://example.webservice", name);
mapping.register(type, qName,
new BeanSerializerFactory(type, qName),
new BeanDeserializerFactory(type, qName));
}

}

now i need to call an array of persons (Person[]) and i don't know how to realize it.

thank you for your help