Author: apatel
Date: Fri Jun 29 08:07:45 2007
New Revision: 551920
URL:
http://svn.apache.org/viewvc?view=rev&rev=551920Log:
Improvement and clean up.
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java?view=diff&rev=551920&r1=551919&r2=551920==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java Fri Jun 29 08:07:45 2007
@@ -122,6 +122,7 @@
GenericDelegator delegator = ctx.getDelegator();
LocalDispatcher dispatcher = ctx.getDispatcher();
InputStream in = (InputStream) context.get("inputStream");
+
try{
GenericValue userLogin = delegator.findByPrimaryKey("UserLogin",UtilMisc.toMap("userLoginId","admin"));
Document doc = UtilXml.readXmlDocument(in, true, "RecieveConfirmBod");
@@ -199,6 +200,8 @@
return ServiceUtil.returnError(errMsg);
}
- return ServiceUtil.returnSuccess("Service Completed Successfully");
+ Map result = ServiceUtil.returnSuccess("Service Completed Successfully");
+ result.put("contentType", "text/plain");
+ return result;
}
}