Empty Axis2 array
I am getting null insted of an empty array on the client side when my POJO axis2 method returns an empty array. I understand that the problem is in the WSDL.
Is there a way to set up axis 2 to generate a valid WSDL? I am creating an axis 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 can anyone give an example of a custom SchemaGenerator for Axis2 services?
Thanks.
+2
a source to share