Vikas, Since you are using doc/lit, you should be able to get the DOM object and get hold of 'arrayOfaddresses' nodes. Now my question would be, why do you want to change the server behavior (which is neater) just so a buggy client can work? I would rather fix the client to send correct xml doc.
Jai -----Original Message----- From: Vikas Phonsa [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:33 PM To: '[EMAIL PROTECTED]' Subject: multiple objects without using arrays in doc/literal Hi Everybody, I am developing a doc/literal style web service and the implementation java class has only one method: Public String insertOrUpdate(Contact contact). And the contact object has an array of addresses. So the SOAP message should look like this: <contact> <arrayOfaddresses> <address> <street>addr1</street> </address> <address> <street>addr2</street> </address> </arrayOfaddresses> </contact> There is an internal application (Siebel) which is supposed to send me SOAP messages in the above format. But the tools that are being used to generate the Client on Siebel aren't working right, they fail to create an array and send me this: <contact> <arrayOfaddresses> <address> <street>addr1</street> </address> </arrayOfaddresses> <arrayOfaddresses> <address> <street>addr2</street> </address> </arrayOfaddresses> </contact> So basically instead of getting an array or addresses I would be getting multiple address elements associated with a contact. In case of an array I could easily iterate through it to get addresses. But in this case I don't know how many addresses would be sent. I would appreciate any thoughts or suggestions on how I could iterate through multiple addresses elements that would be sent. How could this situation be mapped to a java classes. Thanks in advance Vikas
