Hello all,
I'm fairly new to
Java; since a few days I've been playing around with Java, XML and
SOAP. With some aid of Eclipse I've written a client for a SOAP webservice, using Axis.
The webservice I need to access anwers in a somewhat odd way: the body of the SOAP response features a CDATA block, containing another XML document with the requested data. I can handle that, so no questions there.
However... I need to process the information in the SOAP response. Because of the document layout I don't know how to do that in an efficient way.
XML example:
As you might have noticed, the document above contains information on a customer and products somehow related to this customer. Put differently: there's a one-to-many relationship hidden in this document.
So here's the question: how to handle this in an efficient way, given I want to do things like listing all the products for a customer..? Should I put the relevant information from the XML document in some other data container first (multidimensional array?)?
The actual XML document as returned by the SOAP service is rather large and may contain quite a few of these constructions.
Thanks in advance!