soapMessage=xml; // use it as it is
leader=xml.substring(0, 20);
if(!leader.contains("Envelope"))
soapMessage=EnvelopeStart+soapMessage+EnvelopeEnd;
DeserializationContext dser = new DeserializationContext(
new InputSource(new StringReader(soapMessage)),
new MessageContext(new AxisServer()),
org.apache.axis.Message.RESPONSE);
try {
dser.parse();
SOAPEnvelope env = dser.getEnvelope();
RPCElement rpcElem = (RPCElement)env.getFirstBody();
String objectType=rpcElem.getLocalName();
if(objectType.equals("searchRetrieveRequest"))
obj=rpcElem.getObjectValue(SearchRetrieveRequestType.class);
else if(objectType.equals("searchRetrieveResponse"))