Results 1 to 1 of 1

Thread: array of complex type

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    10

    Default 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 at 05:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •