locked
DHL API sample coding using C# RRS feed

  • Question

  • User1077245351 posted

    Hi,

    I am familiar with SOA and Rest Web services, but I need your attention: I want  to create a project that will connect to the Label Server DHL API and show the ability to generate a label image.  I am utilizing the test server for integration. The endpoint is http://test-ifslabelservice.cloudapp.net/api/DhlApi.svc. This is a SOAP API built with WCF. Using the credentials to authenticate: Username: TestUsername; Password: somePassword and leave the MailerID set to 0, and leave the ProfileName and TechPartnerId null.

    First is to create a login credential application code to authenticate the user after login goes to Label Server DHL API and later show the ability to generate label image.

    API Documentation:

    The API URL is available at http://test-ifslabelservice.cloudapp.net/api/DhlApi.svc. This service allows for http and https requests and both endpoints are defined in the WSDL.

    API Methods Call:

    DHLLabelResponse  -  GetLabel   and DHLLabelRequest GetLabelRequest  -  This method will generate a domestic DHL label according to the information contained in the DhlLabelRequest object

    Your quick help is really appreciated with sample code how to connect to Label Server API as well using C#

    Thanks

    Thursday, May 2, 2019 6:47 PM

All replies