Subversion Repositories SmartDukaan

Rev

Rev 8509 | Rev 19421 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8509 Rev 9775
Line 25... Line 25...
25
public class ShipWebServiceClient 
25
public class ShipWebServiceClient 
26
{
26
{
27
 
27
 
28
	public static ProcessShipmentReply getShipmentCreationReply(Order t_order ,ClientDetail clientDetail, WebAuthenticationDetail wac, String endpointAddress){
28
	public static ProcessShipmentReply getShipmentCreationReply(Order t_order ,ClientDetail clientDetail, WebAuthenticationDetail wac, String endpointAddress){
29
		ProcessShipmentRequest request = new ProcessShipmentRequest(); // Build a request object
29
		ProcessShipmentRequest request = new ProcessShipmentRequest(); // Build a request object
-
 
30
        System.out.println("Account Number... "+clientDetail.getAccountNumber());
-
 
31
        System.out.println("Meter Number... "+clientDetail.getMeterNumber());
30
        request.setClientDetail(clientDetail);
32
		request.setClientDetail(clientDetail);
31
        request.setWebAuthenticationDetail(wac);
33
        request.setWebAuthenticationDetail(wac);
32
        
34
        
33
        TransactionDetail transactionDetail = new TransactionDetail();
35
        TransactionDetail transactionDetail = new TransactionDetail();
34
	    transactionDetail.setCustomerTransactionId("Domestic Express Ship Request"); // The client will get the same value back in the response
36
	    transactionDetail.setCustomerTransactionId("Domestic Express Ship Request"); // The client will get the same value back in the response
35
	    request.setTransactionDetail(transactionDetail);
37
	    request.setTransactionDetail(transactionDetail);
Line 74... Line 76...
74
			
76
			
75
			printNotifications(reply.getNotifications());
77
			printNotifications(reply.getNotifications());
76
			if (isResponseOk(reply.getHighestSeverity())) // check if the call was successful
78
			if (isResponseOk(reply.getHighestSeverity())) // check if the call was successful
77
			{
79
			{
78
				writeServiceOutput(reply);
80
				writeServiceOutput(reply);
-
 
81
				//System.out.println("Response from FedEx End Successfull");
79
			}	
82
			}	
80
 
83
 
81
		} catch (Exception e) {
84
		} catch (Exception e) {
82
		    e.printStackTrace();
85
		    e.printStackTrace();
83
		}
86
		}