hi pooja
i worked in this..
the flow is like
when i sending the xml request we should marshal the request xml as object and in respons unmarhal the request object and it give it as xml.for parsing the request u can use any parser i used JDOM parser which it read element by element and parsed it.
request:
Element rootElement = requestDoc.getRootElement();
sessionId = rootElement.getAttributeValue("sessionId");
Element header = rootElement.getChild("header");
id = JDOMUtil.getString(header, "id", true, "CHECK ID");
in between u should writee code for processing and parsing
in respone:
XMLBuilder xml = new XMLBuilder();
xml.addSchema("");
xml.startChildWithAttribute("your response", "id", req.getID());
xml.startChild("header");
xml.endChild("status");
xml.endChild("header");
xml.startChild("body");
thanks
mail me if u want further answer
jaigurudev