public Protocols.ToolkitResultProtocol CreateBOM(Protocols.Interfaces.CreateBOMSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );
            FChoice.Toolkits.Clarify.Interfaces.CreateBOMSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Interfaces.CreateBOMSetup(setupParam.ParentPartNumber, setupParam.ParentPartDomain, setupParam.ParentPartRevision, setupParam.ChildPartNumber, setupParam.ChildPartDomain, setupParam.ChildPartRevision, setupParam.Quantity);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.ParentPartNumber = setupParam.ParentPartNumber;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.ParentPartDomain = setupParam.ParentPartDomain;
            }

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.ParentPartRevision = setupParam.ParentPartRevision;
            }

            if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
            {
                setup.ChildPartNumber = setupParam.ChildPartNumber;
            }

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.ChildPartDomain = setupParam.ChildPartDomain;
            }

            if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
            {
                setup.ChildPartRevision = setupParam.ChildPartRevision;
            }

            if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
            {
                setup.Quantity = setupParam.Quantity;
            }

            return new Protocols.ToolkitResultProtocol( toolkit.CreateBOM(setup) );
        }
        public Protocols.ToolkitResultProtocol CreateBOM(System.String parentPartNumber, System.String parentPartDomain, System.String parentPartRevision, System.String childPartNumber, System.String childPartDomain, System.String childPartRevision, System.Int32 quantity)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CreateBOM(parentPartNumber, parentPartDomain, parentPartRevision, childPartNumber, childPartDomain, childPartRevision, quantity) );
        }