Hi

I'm still trying to access the DHL API. Unfortunately, the first attempt with HTTPConnection (see topic: HTTPConnection - DHL API) failed. Now the second attempt with WebService. Here I get the following error:

Quote
error
{DataProcessor.DHLws.Form.Form.Form(158)}: Error calling context method (getVersion)
Response = WSProxy.getVersion(InParameter);
, reason:
Web service call error. Service operation call error:  {http://dhl.de/webservices/businesscustomershipping/3.0}:GVAPI_2_0_de:getVersion()
, reason:
Web service call error. Unknown error. Error converting XDTO data:
Read object of {http://dhl.de/webservices/businesscustomershipping/3.0}Version type - [12,4]
Additional property validation:
form: Item
name: majorRelease
, reason:
Error converting XDTO data:
Read object of {http://dhl.de/webservices/businesscustomershipping/3.0}Version type - [12,4]
Additional property validation:
form: Item
name: majorRelease
, reason:
XDTO data validation error:
Object structure does not match type: {http://dhl.de/webservices/businesscustomershipping/3.0}Version
I am at the end of my wisdom and urgently need help! Would be nice if there is one with experience with the DHL API.

That's my code:

Code
&AtServer
Procedure GetVersionServerWS()
   
   // in WSReference: "https://cig.dhl.de/cig-wsdls/com/dpdhl/wsdl/geschaeftskundenversand-api/3.0/geschaeftskundenversand-api-3.0.wsdl";

   ServiceNamespace = "http://dhl.de/webservices/businesscustomershipping/3.0";
   ServiceName = "GVAPI_2_0_de";
   Port = "GKVAPISOAP11port0";
   ServiceEndpoint = "https://cig.dhl.de/services/sandbox/soap";
   User = Constants.User.Get();
   Password = Constants.Password.Get();
   SecureConnection = New OpenSSLSecureConnection;
      
   WSProxy = WSReferences.WSReferenceDHL.CreateWSProxy(ServiceNamespace, ServiceName, Port, , , SecureConnection, ServiceEndpoint);
   WSProxy.User = User;
   WSProxy.Password = Password;
   
   InParameterType = WSProxy.XDTOFactory.Packages.Get(ServiceNamespace).Get("Version");
   InParameter = WSProxy.XDTOFactory.Create(InParameterType);
   InParameter.majorRelease = "3";
   InParameter.minorRelease = "0";
   InParameter.build = "0";
   
   Try
      Response = WSProxy.getVersion(InParameter);
   Except
      Message(BriefErrorDescription(ErrorInfo()));
   EndTry;
   
EndProcedure



Let me know if you need further information. Thanks in advace.
Michael