Announcement Announcement Module
Collapse
No announcement yet.
array of complex type Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • array of complex type

    hello

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

    HTML Code:
    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
    Last edited by hanso; May 22nd, 2006, 06:05 AM.
Working...
X