Subversion Repositories SmartDukaan

Rev

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

Rev 22185 Rev 22575
Line 2... Line 2...
2
 
2
 
3
import in.shop2020.model.v1.order.Order;
3
import in.shop2020.model.v1.order.Order;
4
 
4
 
5
import java.util.ArrayList;
5
import java.util.ArrayList;
6
import java.util.Calendar;
6
import java.util.Calendar;
7
import java.util.Date;
-
 
8
import java.util.List;
7
import java.util.List;
9
 
8
 
-
 
9
import javax.xml.ws.BindingProvider;
-
 
10
import javax.xml.ws.handler.Handler;
-
 
11
 
10
import com.aramex.stub.Address;
12
import com.aramex.stub.Address;
11
import com.aramex.stub.ArrayOfShipment;
13
import com.aramex.stub.ArrayOfShipment;
12
import com.aramex.stub.ClientInfo;
14
import com.aramex.stub.ClientInfo;
13
import com.aramex.stub.Contact;
15
import com.aramex.stub.Contact;
14
import com.aramex.stub.LabelInfo;
16
import com.aramex.stub.LabelInfo;
Line 127... Line 129...
127
	}
129
	}
128
	
130
	
129
	private String getAwb(Shipment shipment) throws Exception{
131
	private String getAwb(Shipment shipment) throws Exception{
130
		Service_1_0_Service aramexService = new Service_1_0_ServiceLocator();
132
		Service_1_0_Service aramexService = new Service_1_0_ServiceLocator();
131
		Service_1_0_PortType service = aramexService.getBasicHttpBinding_Service_1_0();
133
		Service_1_0_PortType service = aramexService.getBasicHttpBinding_Service_1_0();
-
 
134
		BindingProvider bindProv =(BindingProvider)service;
-
 
135
		java.util.List<Handler> handlers = bindProv.getBinding().getHandlerChain();
-
 
136
		handlers.add(new MyServiceLogHandler());
-
 
137
		bindProv.getBinding().setHandlerChain(handlers);
132
		ShipmentCreationRequest parameters = new ShipmentCreationRequest();
138
		ShipmentCreationRequest parameters = new ShipmentCreationRequest();
133
		ArrayOfShipment shipments = new ArrayOfShipment();
139
		ArrayOfShipment shipments = new ArrayOfShipment();
134
		Shipment [] shipArray = new Shipment[1];
140
		Shipment [] shipArray = new Shipment[1];
135
		
141
		
136
		
142