Commerce Server General - Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > November 2006 > Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)
Eugene B

2006-11-13, 8:42 am

Sorry, i placed a little different exemple of the web.config file's
fragment. Assemby name for the AnsiEssOrderForm type in the GAC was
complete, including version and token, and deffenition of the
"AnsiEssOrderForm" type is:

<Type Key="OrderForm" UserTypeName="AnsiEssOrderForm" AssemblyType="GAC"
NameSpace="AnsiOrg.Ess.Components"
Assembly="AnsiEssComponents, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d89c3894000fd4bf"/>

Thank you.

"Eugene B" <ebukhsht@ansi.org> wrote in message
news:ul6LQ80AHHA.4328@TK2MSFTNGP03.phx.gbl...
> Hi folks!
>
> I have to extend Order System so I followed V. Kumar's guide lines and
> made the following:
>
> I've created separate project, which would produce a dll, containing new
> and extended classes such as "AnsiEssOrderForm" class(derived from
> Microsoft.CommerceServer.Runtime.Orders.OrderForm, and implementing two
> new properties: OrderType [int], and IpAddress [string; nvarchar(50) in
> database]), DepositAccountPayment class (derived from Payment type and is
> similar to the CashCardPayment type, with the only difference in Property
> Name="CashCardNumber; I've changed it to the AccountNumber) , and
> KeyCodePayment class, with the same changes as previous one. The name
> space used for the new types in dll was "AnsiOrg.Ess.Components", and name
> of the produced assembly was "AnsiEssComponents". Following, very clearly
> written guide, I've modified OrderObjectMappings.xml, and
> OrderPipelineMappings.xml files, as well as "web.config" file. But when I
> tried to run OrderMapping.exe utility, to generate TSQL for procedure's
> updates, I always received this message:
>
> -----------------------
>
> One or more errors found during validation:
>
> Warning O0019 - Class AnsiEssOrderForm is present in Object Mapping file
> but is not present in web.config as a UserTypeName. Is this desired?
>
> Warning O0019 - Class DepositAccountPayment is present in Object Mapping
> file but is not present in web.config as a UserTypeName. Is this desired?
>
> Warning O0019 - Class KeyCodePayment is present in Object Mapping file but
> is not present in web.config as a UserTypeName. Is this desired?
>
> Error G0010 - Mapping defined for class KeyCodePayment which does not
> exist in any provided assembly
>
> Error G0010 - Mapping defined for class DepositAccountPayment which does
> not exist in any provided assembly
>
> Error G0010 - Mapping defined for class AnsiEssOrderForm which does not
> exist in any provided assembly
>
>
>
> I've tried different things; including signing dll with a strong name, and
> placing it in to the GAC, but it did not work.
>
>
>
> Here is a fragment of my web.config file:
>
> <Types>
>
> <Type Key="Basket"
> UserTypeName="Basket" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="PurchaseOrder"
> UserTypeName="PurchaseOrder" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="OrderTemplate"
> UserTypeName="OrderTemplate" AssemblyType="GAC"
>
>
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
>
>
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="OrderForm"
> UserTypeName="AnsiEssOrderForm" AssemblyType="GAC"
>
>
> NameSpace="AnsiOrg.Ess.Components"
>
>
> Assembly="AnsiEssComponents"/>
>
> <Type Key="LineItem"
> UserTypeName="LineItem" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="Shipment"
> UserTypeName="Shipment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="Payment"
> UserTypeName="Payment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="CreditCardPayment" UserTypeName="CreditCardPayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="GiftCertificatePayment" UserTypeName="GiftCertificatePayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="PurchaseOrderPayment" UserTypeName="PurchaseOrderPayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="CashCardPayment"
> UserTypeName="CashCardPayment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="DepositAccountPayment" UserTypeName="DepositAccountPayment"
> AssemblyType="GAC" NameSpace="AnsiOrg.Ess.Components"
> Assembly="AnsiEssComponents, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=d89c3894000fd4bf"/>
>
> <Type Key="KeyCodePayment"
> UserTypeName="KeyCodePayment" AssemblyType="GAC"
> NameSpace="AnsiOrg.Ess.Components" Assembly="AnsiEssComponents,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=d89c3894000fd4bf"/>
>
> <Type Key="OrderAddress"
> UserTypeName="OrderAddress" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="DiscountApplicationRecord" UserTypeName="DiscountApplicationRecord"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type
> Key="ShippingDiscountRecord" UserTypeName="ShippingDiscountRecord"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> <Type Key="PromoCodeRecord"
> UserTypeName="PromoCodeRecord" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
> </Types>
>
>
>
> And here is a fragment of my OrderObjectMapping.xml file:
>
> - <Class Name="AnsiEssOrderForm">
>
> <Property Name="OrderFormId" />
>
> <Property Name="OrderGroupId" />
>
> <Property Name="Name" />
>
> <Property Name="BillingAddressId" />
>
> <Property Name="PromoUserIdentity" />
>
> <Property Name="SubTotal" />
>
> <Property Name="ShippingTotal" />
>
> <Property Name="HandlingTotal" />
>
> <Property Name="TaxTotal" />
>
> <Property Name="Total" />
>
> <Property Name="Created" />
>
> <Property Name="LastModified" />
>
> <Property Name="ModifiedBy" />
>
> <Property Name="Payments" />
>
> <Property Name="LineItems" />
>
> <Property Name="Shipments" />
>
> <Property Name="PromoCodeRecords" />
>
> <Property Name="Status" />
>
> <Property Name="OrderType" />
>
> <Property Name="IpAddress" />
>
> </Class>
>
>
>
> Does anybody have ideas about what I did wrong, or maybe someone can see
> something I don't notice?
>
> Has anyone of you experienced something like this, or similar?
>
> Any comments or suggestions are very much appreciated.
>
> Thank you,
>
> Sincerely,
>
> Eugene. B.
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com