First, many of the necessary references were missing (sorry, I didn't keep a list of the ones I added).
Once I got all the references sorted out, I tried to connect using the following (based upon the SoftPro supplied code):
Code: Select all
NetworkCredential credentials = new NetworkCredential("admin", "Passw0rd", global::SoftPro.ClientModel.Constants.ServerDomain);
SelectServer sps = new SelectServer("http://SoftPro:8080", credentials);
try
{
//if we do not force authentication now, it will happen later (in a lzay fashion) - using
//this method allows us to catch the exception in a controlled manner
Console.WriteLine("Logging in.");
sps.EnsureAuthenticated();
//in order to work with Order Tracking (ie ProForm), you need to obtain the OrderTracking service object
OrderTracking ot = sps.GetService<OrderTracking>();
Code: Select all
{"Method not found: 'Void SoftPro.Administration.Common.ISecurityDataAccessService.GetAllSecurityInformation(SoftPro.Security.Classes.SecurityTrusteeCollection, SoftPro.Security.Classes.SecurityTrusteeCollection, SoftPro.Security.Classes.SecurityTrusteeCollection, SoftPro.Security.Classes.ProfileCollection, System.Collections.Generic.Dictionary`2<System.Guid,System.Guid>, SoftPro.Security.Classes.RoleCollection, SoftPro.Security.Classes.MyScreenCollection, SoftPro.Security.Classes.SecuredObjectCollection, Boolean)'."} System.Exception {System.MissingMethodException}
I bring this up, since my own code uses the same process as the sample code.
Thanks,