Hi
I'm still trying to access the DHL API. Unfortunately, the first attempt with HTTPConnection (see topic:
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: { , reason: Web service call error. Unknown error. Error converting XDTO data: Read object of { Additional property validation: form: Item name: majorRelease , reason: Error converting XDTO data: Read object of { Additional property validation: form: Item name: majorRelease , reason: XDTO data validation error: Object structure does not match type: { |
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