How to create a record with the 42 page published

usherbrookeusherbrooke Member Posts: 10
edited 2011-09-19 in NAV Three Tier
Hello,

I started my code as it, but I have an error message: 'the DotNet variable has not been instantiated'. I ask you help, thank you very much.

//***C/Side***
address := 'http://localhost:7047/DynamicsNAV/WS/CRONUS/Page/NAV_WS_SalesHeader';
navBinding := navBinding.BasicHttpBinding;
navBinding.Security.Mode := 4;
navBinding.MaxReceivedMessageSize(10000000);
navBinding.Security.Transport.ClientCredentialType := 4;
SalesHeaders := SalesHeadersService.NAV_WS_SalesHeader_PortClient(navBinding,endpointAddress.EndpointAddress(address));
SalesHeadersService.ClientCredentials.Windows.AllowedImpersonationLevel := 4;
SalesHeaders.Document_Type := 1;
SalesHeaders.No := '00001';
//...
SalesHeadersService.Create(SalesHeaders);

//***Vaiables***
Name DataType Subtype Length
SalesHdr Record Sales Header
SalesHeaders DotNet 'SynchroDKSDevis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.SynchroDKSDevis.SalesHeaderService.NAV_WS_SalesHeader
SalesHeadersService DotNet 'SynchroDKSDevis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.SynchroDKSDevis.SalesHeaderService.NAV_WS_SalesHeader_PortClient
address Text 256
navBinding DotNet 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.ServiceModel.BasicHttpBinding
navList DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Array
endpointAddress DotNet 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.ServiceModel.EndpointAddress

Regards,

BEnOîT
Sign In or Register to comment.