New DEMO Release of Wello Logistics Software (en)

A new DEMO Release of WELLO LOGISTICS has been published on our pages. It contains the latest release of the software and illustrates the power of our software.

 

However there are some restrictions to know

  • GPS & WebFleet Modules are inactive
  • No background service is running for proceeding background processes, like sending emails to customers.
  • No real banking accounts are active to retrieve bank statements

The DEMO Page is linked to http://wellcode.de/WelloDemo/

The DEMO contains sample users reflecting the different rules a user can have (Booker, Driver, User, Storeman, Administrator, Customer).

Every user has his own view of the software, so please toggle between the rules to see the differences.

See First Steps to get started.

Wellcode Logistics

Wellcode Logistics is a new module, that has been added to the solution Wello.

With the instruments of Wellcode Framework, especially the web components and with the strict abstraction between presentation and data layers, was it possible to develop the complex solution in shortest time.

It is a distribution and forwarding software made for logistic, haulage and forwarding companies.

For more information visit this site.

add known types to wcf service dynamically – KnownTypeProvider

After some experiences I camed out to the following code. It takes care of finding the missing types used in an operation contract.

If you want to use this code, the only thing to do here, is to extend the assemblies list of all your assemblies that contain data contract classes, whitch are part of the operation contracts in use.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web;

namespace Wellcode.Wello
{
    /// <summary>
    /// data contract type collector
    /// </summary>
    public static class KnownTypeProvider
    {
        /// <summary>
        /// Collect types of all data contracts in all assemblies of 
        /// interest. this are
        /// - WellFrame Assembly, where basic types are definied
        /// - Assembly, that contains generated entity types, used in the web service.
        /// </summary>
        /// <param name="provider"></param>
        /// <returns></returns>
        public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider)
        {
            if (types != null)
                return types;

            types = new List<Type>();

            var assemblies = new List<Assembly>();
            assemblies.Add(typeof(Wellcode.Frame.WebEntity).Assembly);
            assemblies.Add(typeof(Wellcode.Wello.Document).Assembly);

            foreach (var assembly in assemblies)
            {
                foreach (var type in assembly.ExportedTypes)
                {
                    var attr = type.GetCustomAttribute<DataContractAttribute>(false);
                    if (attr != null && !type.IsGenericType)
                    {
                        types.Add(type);
                    }
                }
            }

            return types;
        }

        /// <summary>
        /// static list of found types
        /// </summary>
        private static List<Type> types = null;
    }
}

the following example shows the using of the provider.

namespace Wellcode.Wello
{
    public partial interface IWelloService
    {
        /// <summary>
        /// get an entity 'AccingAccount' using its primary keys
        /// Table AccingAccount
        /// </summary>
        /// <returns>Entity 'AccingAccount'</returns>
        [OperationContract]
        [ServiceKnownType("GetKnownTypes", typeof(KnownTypeProvider))]
        AccingAccount GetAccingAccount(int accountId);
    }
}

Related to Microsoft Windows Communication Foundation (WCF)