if (Flickr.debugStream) {
System.out.println("SOAP RESPONSE.parse");
System.out.println(body.getAsString());
}
SOAPFault fault = (SOAPFault)body.getFault();
if (fault != null) {
System.err.println("FAULT: "+fault.getAsString());
errorCode = fault.getFaultCode();
errorMessage = fault.getFaultString();
} else {
for (Iterator i = body.getChildElements(); i.hasNext(); ) {
Element bodyelement = (Element)i.next();
bodyelement.normalize();
// TODO: Verify that the payload is always a single XML node