Thank you for your response. I tried the link and was able to retrieve a response, but the response is not what I am supposed to get. I noticed the DHL web service has an endpoint based on wsdl. I followed your post at
http://forums.asp.net/t/1683966.aspx/1 and I added the wdsl as service reference which was fine. When I try to call the class and assign a value as below, it throws a System.NullReferenceException . What
am I possibly doing wrong? Thanks.
B10
Member
6 Points
15 Posts
Re: Creating DHL package label through a web service...
Apr 14, 2012 08:55 PM|LINK
Thank you for your response. I tried the link and was able to retrieve a response, but the response is not what I am supposed to get. I noticed the DHL web service has an endpoint based on wsdl. I followed your post at http://forums.asp.net/t/1683966.aspx/1 and I added the wdsl as service reference which was fine. When I try to call the class and assign a value as below, it throws a System.NullReferenceException . What am I possibly doing wrong? Thanks.
WSDL : http://test-intraship.dhl.com/ws/1_0/ISService/DE.wsdl
Endpoint : http://test-intraship.dhl.com/ws/1_0/de/ISService
DHL.AuthentificationType auth = new DHL.AuthentificationType();
auth.user = "TestKND";
auth.signature = "DHLdhl123";
auth.type = "0";
DHL.createShipmentDDRequest1 createShipmentDDRequest1 = new DHL.createShipmentDDRequest1();
createShipmentDDRequest1.CreateShipmentDDRequest.ShipmentOrder[0].SequenceNumber = "1";