Commerce Server General - Possible bug in Microsoft.CommerceServer.Runtime.Profiles.Profile.GetXml?

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2004 > Possible bug in Microsoft.CommerceServer.Runtime.Profiles.Profile.GetXml?





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 Possible bug in Microsoft.CommerceServer.Runtime.Profiles.Profile.GetXml?
Ben Robb

2004-05-30, 10:45 am

I have the following line of code in an application:

-------------------
string XmlString = userProfile.GetXml(ProfileXmlRetrieve.Schema,ProfileXmlFormat.ElementCentric);
-------------------

Is there any particular reason why this returns a schema for Attribute
centric profile xml? Oddly enough, when I do:

-------------------
string XmlString = userProfile.GetXml(ProfileXmlRetrieve.Data,ProfileXmlFormat.ElementCentric);
-------------------

my profile items are indeed in elements. When I do:

-------------------
string XmlString = userProfile.GetXml(ProfileXmlRetrieve.SchemaAndData,ProfileXmlFormat.ElementCentric);
-------------------

the data is in elements, but the schema is for attributes.

Can anyone else recreate this: I am on the following platform...

Windows 2003
Commerce Server 2002 FP1
..NET Framework 1.1

Thanks,

Ben Robb
Technical Architect
cScape Ltd
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com