The project at beginner was a form application and I have used NAV.sg1() that is an object of web reference to NAV, but now I must use a DLL so I can't connect to NAV using a web reference becouse the DLL can't read the config XML of the web reference. So I have read online that using channelfactory it is possible. in Afternoon my collegue is going to send me the project so I will post the code.
Comments
You're writing this library, I assume?
this is the point that I must change
Digas = new NAV.sg1();
Digas.Url = linkCodeunit;
Digas.Credentials = new NetworkCredential(usernameCodeunit, passwordCodeunit);
}
byte[] S64 = readByte(responseStream);
string STR64bit = Convert.ToBase64String(S64);
Digas.ImportCommunication(STR64bit, NomeFile, SGAteID);
The project at beginner was a form application and I have used NAV.sg1() that is an object of web reference to NAV, but now I must use a DLL so I can't connect to NAV using a web reference becouse the DLL can't read the config XML of the web reference. So I have read online that using channelfactory it is possible. in Afternoon my collegue is going to send me the project so I will post the code.
thanks
Else, there's a decent write up on implementing the interfaces and channel factories here.