title: Java WSDL DHL Classes
body: <p>I have create Java Classes from the DHL WSDL
  <a href="https://cig.dhl.de/cig-wsdls/com/dpdhl/wsdl/geschaeftskundenversand-api/2.2/geschaeftskundenversand-api-2.2.wsdl" rel="nofollow noreferrer">https://cig.dhl.de/cig-wsdls/com/dpdhl/wsdl/geschaeftskundenversand-api/2.2/geschaeftskundenversand-api-2.2.wsdl</a>.</p>
  
  <p>Now i have all Classes, but no Authentifaction Class.
  I try this</p>
  
  <pre><code> GKVAPIServicePortTypeProxy port2 = new GKVAPIServicePortTypeProxy();
          port2.setEndpoint("https://cig.dhl.de/services/sandbox/soap");
  
       CreateShipmentOrderRequest sh = new CreateShipmentOrderRequest();
          //Setting up shipment;
          .. and so on
  
          CreateShipmentOrderResponse chr = port2.createShipmentOrder(sh);
  </code></pre>
  
  <p>But only what i get is, "(401)Authorization Required"
  How can i set my Authentifiaction ?</p>