Commerce Server General - BizTalk Profile Adapter

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2006 > BizTalk Profile Adapter





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 BizTalk Profile Adapter
Xcel

2006-09-21, 1:21 pm

I am looking over the ProfileImport.xml sample file from the Profile Adapter
and have a few questions.

1. What do I pass for a user_id. (It looks to be a guid - can I just pass a
blank)
2. Do I have to pass the password and password answer encrypted, if so how
do I accomplish this.
3. How do I pass Address and Credit Card lists. The sample looks like it
passes a related record Id - however on an import I would not have these and
they would need to be created.

Plase Advise.
Alan Faulkner

2006-09-21, 7:24 pm

Hey,

Answers inline:

1. What do I pass for a user_id. (It looks to be a guid - can I just pass
a
blank)

-------[Alan] You have to pass in a value here, it cannot be blank. To
integrate with Commerce Server Orders system, this value needs to be a Guid
value.

2. Do I have to pass the password and password answer encrypted, if so how
do I accomplish this.

-------[Alan] No - You do not need to pass the "password_question" or the
"password_answer" as encrypted values. They can be clear text if you wish.




3. How do I pass Address and Credit Card lists. The sample looks like it
passes a related record Id - however on an import I would not have these
and
they would need to be created.

-------[Alan] You don't have to pass these values on Profile Import if you
don't have them. You can always use the profiles subsystem to update those
values at a later time (using the APIs).

Here is an example of the minimum values that need to be sent for a
Profiles to be imported:

<ProfileDocument>
<UserObject>
<AccountInfo>
<account_status>1</account_status>
<date_registered>09/21/2006 11:37:47</date_registered>
</AccountInfo>
<GeneralInfo>
<user_id>0eb5e6ba-66a8-456a-996f-3f59b5c99192</user_id>
<user_security_password>password</user_security_password>
<email_address>user2@organization.com</email_address>
<password_question>This is a question</password_question>
<password_answer>This is the answer</password_answer>
</GeneralInfo>
</UserObject>
</ProfileDocument>

Hope this helps and let me know if you have anymore questions or concerns!


Thanks,
Alan Faulkner
[Microsoft]
http://blogs.msdn.com/akfaulkner



This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Xcel

2006-09-21, 7:24 pm

Alan,

Thank you for the response.

Two more questions.

1. Can you put more than one user in the XML file. I tried this with each
user having there own UserObject tab in the XML file - however the adapter
did not seem to be to happy with that.
2. Do you have an example (how the file would look) on how I would send in
some address information for the user.

Chris...

"Alan Faulkner" wrote:

> Hey,
>
> Answers inline:
>
> 1. What do I pass for a user_id. (It looks to be a guid - can I just pass
> a
> blank)
>
> -------[Alan] You have to pass in a value here, it cannot be blank. To
> integrate with Commerce Server Orders system, this value needs to be a Guid
> value.
>
> 2. Do I have to pass the password and password answer encrypted, if so how
> do I accomplish this.
>
> -------[Alan] No - You do not need to pass the "password_question" or the
> "password_answer" as encrypted values. They can be clear text if you wish.
>
>
>
>
> 3. How do I pass Address and Credit Card lists. The sample looks like it
> passes a related record Id - however on an import I would not have these
> and
> they would need to be created.
>
> -------[Alan] You don't have to pass these values on Profile Import if you
> don't have them. You can always use the profiles subsystem to update those
> values at a later time (using the APIs).
>
> Here is an example of the minimum values that need to be sent for a
> Profiles to be imported:
>
> <ProfileDocument>
> <UserObject>
> <AccountInfo>
> <account_status>1</account_status>
> <date_registered>09/21/2006 11:37:47</date_registered>
> </AccountInfo>
> <GeneralInfo>
> <user_id>0eb5e6ba-66a8-456a-996f-3f59b5c99192</user_id>
> <user_security_password>password</user_security_password>
> <email_address>user2@organization.com</email_address>
> <password_question>This is a question</password_question>
> <password_answer>This is the answer</password_answer>
> </GeneralInfo>
> </UserObject>
> </ProfileDocument>
>
> Hope this helps and let me know if you have anymore questions or concerns!
>
>
> Thanks,
> Alan Faulkner
> [Microsoft]
> http://blogs.msdn.com/akfaulkner
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright

Alan Faulkner

2006-09-23, 1:32 am

Hey Chris,

For your questions.

1. No - The profiles API requires that you have one object per xml file
(be that UserObject, Address, etc...), thus the Adapter also requires that
as well.

2. To create a Address profile (I assume this is what you are asking), it
would look like:

<?xml version="1.0"?>
<ProfileDocument xmlns="">
<Address>
<GeneralInfo>
<address_id>{c10e8692-215b-4a39-bc17-77ccc63d0adc}</address_id>
<last_name>a</last_name>
<first_name>a</first_name>
<address_name>a</address_name>
<address_line1>a</address_line1>
<address_line2>a</address_line2>
<city>a</city>
<region_code>a</region_code>
<postal_code>a</postal_code>
<country_name>UNITED STATES</country_name>
<tel_number>9999999</tel_number>
<tel_extension>9999</tel_extension>
</GeneralInfo>
<ProfileSystem>
<date_last_changed>2006-09-21T11:49:06.0000000-07:00</date_last_changed>
<date_created>2006-09-21T11:49:06.0000000-07:00</date_created>
</ProfileSystem></Address></ProfileDocument>

To find the minimum required elements for profile creation, you can use the
Profiles Web Service call: GetProfileDefinition. This will return the
profile definition as a XML string and the required elements will be marked
as "IsRequired=1".

Let me know if you have any more questions.


Thanks,
Alan Faulkner
[Microsoft]
http://blogs.msdn.com/akfaulkner



This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com