Commerce Server General - <addressmap> problem

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > January 2005 > <addressmap> problem





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 <addressmap> problem
Jason

2005-01-21, 5:50 pm

Hi. I have the following address map in web.config:

<orders>
<addressmap>
<profileDefinition name="Address" />
<property from="GeneralInfo.first_name" to="first_name" />
<property from="GeneralInfo.last_name" to="last_name" />
<property from="GeneralInfo.address_line1" to="address_line1" />
<property from="GeneralInfo.address_line2" to="address_line2" />
<property from="GeneralInfo.city" to="city" />
<property from="GeneralInfo.region_code" to="region_code" />
<property from="GeneralInfo.region_name" to="region_name" />
<property from="GeneralInfo.postal_code" to="postal_code" />
<property from="GeneralInfo.country_code" to="country_code" />
<property from="GeneralInfo.country_name" to="country_name" />
<property from="GeneralInfo.address_id" to="address_id" />
<property from="GeneralInfo.tel_number" to="tel_number" />
<property from="GeneralInfo.address_name" to="address_name" />
<property from="GeneralInfo.address_type" to="address_type" />
</addressmap>
</orders>

When I am creating a new orderAddress object, the region_code and
country_code fields are not being populated. I am using the following code:

Profile addr =
CommerceContext.Current.ProfileSystem.GetProfile("address_id",
addressID.ToString("B"), "Address");

Microsoft.CommerceServer.Runtime.Orders.OrderAddress oa = new
Microsoft.CommerceServer.Runtime.Orders.OrderAddress("Billing", addr);

I have verified that these values are set in the addr object, but not in the
oa object.

Does anyone have any idea what might be going wrong?

Thanks,
Jason


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com