Commit e8d8a4f6 authored by pchavan's avatar pchavan

to show errr msg if guid not found.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@197668 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0217d9a7
...@@ -74,6 +74,18 @@ public class SCMWebServiceDao extends ValidatorEJB ...@@ -74,6 +74,18 @@ public class SCMWebServiceDao extends ValidatorEJB
this.setUserInfo(userInfoBean); this.setUserInfo(userInfoBean);
conn = getConnection(); conn = getConnection();
if(RefNo == null || RefNo.trim().length() ==0) if(RefNo == null || RefNo.trim().length() ==0)
{
if(uniqueId == null || uniqueId.trim().length() ==0)
{
System.out.println("inside unique id ");
retSBuff.append("<msg_code><![CDATA[]]></msg_code>");
retSBuff.append("<msg_descr><![CDATA[Receipt against the given GUID is Not found]]></msg_descr>");
retSBuff.append("<result><![CDATA[FAILED]]></result>");
retSBuff.append("</Root>");
retString = retSBuff.toString();
return retString;
}
else
{ {
sql = "select tran_id ,ref_no from receipt where GUID = ? "; sql = "select tran_id ,ref_no from receipt where GUID = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -95,6 +107,7 @@ public class SCMWebServiceDao extends ValidatorEJB ...@@ -95,6 +107,7 @@ public class SCMWebServiceDao extends ValidatorEJB
rs.close(); rs.close();
rs = null; rs = null;
} }
}
System.out.println("Calling setNodeValue in RefNo.:"); System.out.println("Calling setNodeValue in RefNo.:");
setNodeValue( dataXMLDom, "ref_no", RefNo ); setNodeValue( dataXMLDom, "ref_no", RefNo );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment