Commit 1a2fd843 authored by msingh's avatar msingh

Changed by Manish on 08/04/16 for CommonWmsUtil.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101151 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ea4e2c41
...@@ -1342,8 +1342,9 @@ public class CommonWmsUtil { ...@@ -1342,8 +1342,9 @@ public class CommonWmsUtil {
return null; return null;
} }
public void CallTrackShipStatus(ShipmentStatus shipParams,String url) throws Exception public String CallTrackShipStatus(ShipmentStatus shipParams,String url) throws Exception
{ {
String responseShipTrack = "";
try try
{ {
if(url != null && url.length() > 0) if(url != null && url.length() > 0)
...@@ -1397,7 +1398,8 @@ public class CommonWmsUtil { ...@@ -1397,7 +1398,8 @@ public class CommonWmsUtil {
{ {
response.append(inputLine); response.append(inputLine);
} }
System.out.println("Response From Ship Tracking Server ["+response.toString()+"]"); responseShipTrack = response.toString();
System.out.println("Response From Ship Tracking Server ["+responseShipTrack+"]");
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -1416,7 +1418,7 @@ public class CommonWmsUtil { ...@@ -1416,7 +1418,7 @@ public class CommonWmsUtil {
e.printStackTrace(); e.printStackTrace();
throw new Exception(e); throw new Exception(e);
} }
return responseShipTrack;
} }
static <T> String GetUrlParameters(Class<T> oObject, Object insObject) { static <T> String GetUrlParameters(Class<T> oObject, Object insObject) {
try { try {
......
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