Hi, I recive null insted of empty array on the client side when my POJO axis2 method returns empty array. I understand that the problem is in WSDL.
Is there is any way to configure axis2 to generate valid WSDL? I create axis2 service programmatically:
ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
Map<String, MessageReceiver> mrMap = new HashMap<String, MessageReceiver>();
mrMap.put("http://www.w3.org/ns/wsdl/in-only", RPCInOnlyMessageReceiver.class.newInstance());
mrMap.put("http://www.w3.org/ns/wsdl/in-out", RPCMessageReceiver.class.newInstance());
AxisService service = AxisService.createService(...);
context.getAxisConfiguration().addService(service);
SimpleHTTPServer server = new SimpleHTTPServer(context, port);
server.start();
And anybody can give example of custom SchemaGenerator for Axis2 Services?
Thanks.