Hi I did same code change to findEntry method of AddressBookService, and packed this service to aar and deploy it to tomcat5.
But it worked. I checked this with REST. http://localhost:8080/axis2/rest/AddressBookService/findEntry?name=xyz I got response like this, <ns:findEntryResponse xmlns:ns="http://service.addressbook.sample/xsd"> <ns:return> <city xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <name xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <postalCode xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <state xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <street xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> </ns:return> <ns:return> <city xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <name xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <postalCode xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <state xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> <street xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://entry.addressbook.sample/xsd" nil:nil="true" /> </ns:return> </ns:findEntryResponse> I'm using Axis2 1.1 release with Tomcat5 on sdk 1.4.2, WindowsXP. I think your code change will work. kinichiro --- javaDev <[EMAIL PROTECTED]> wrote: > Ladies and gentlemen, hi > I tryed to check how do I expose service returning array with > Axis2.1.1 (I'm a complitely newbie with Axis2.1.1). I changed a > standard Axis sample sample.addressbook.service.AddressBookService > service: > public Entry findEntry(String name) > to > public Entry[] findEntry(String name) > { return new Entry[] { new Entry(), new Entry()}; } > and the rest left the same. During invocation of deployed service I > receive the error: > ---------------------------------- > <soapenv:Fault><faultcode>soapenv:Client</faultcode> > <faultstring>java.lang.NullPointerException</faultstring> > <detail><Exception>org.apache.axis2.AxisFault: > java.lang.NullPointerException; > nested exception is: > org.apache.axiom.om.OMException: java.lang.NullPointerException > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) > at > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) > ---------------------------------------- > What is my mistake, please? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ____________________________________________________________________________________ Sponsored Link $420k for $1,399/mo. Think You Pay Too Much For Your Mortgage? Find Out! www.LowerMyBills.com/lre --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
