ProcessPerson

The ProcessPerson service registers a person.

 

Request

Request BOD ProcessPerson
Action code Register
Map API registerPerson()
Access profile N/A
Mandatory parameters logonId, logonPassword

Note: logonPasswordVerify is needed by the command, but is not in the logical model. It should be checked on the client side (for example by using JavaScript). The flattener code sets this parameter to the same value as logonPassword.

Schema /xsd/OAGIS/9.0/Overlays/IBM/Commerce/BODs/ProcessPerson.xsd
Service data object ProcessPersonType

 

Sample ProcessPerson Request (Register new user) BOD

Acknowledge with PersonIdentifier and ContactInfoIdentfier. The response contains both internal and external fields.

<?xml version="1.0" encoding="UTF-8"?>
<_mbr:ProcessPerson
xmlns:_mbr="http://www.ibm.com/xmlns/prod/commerce/9/member"
xmlns:_wcf="http://www.ibm.com/xmlns/prod/commerce/9/foundation"
xmlns:oa="http://www.openapplications.org/oagis/9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <oa:ApplicationArea
xsi:type="_wcf:ApplicationAreaType">
               
<oa:CreationDateTime>2006-12-20T09:51:52.422Z</oa:CreationDateTime>
               
<oa:BODID>a0a33df0-9039-11db-ab11-832f45894e08</oa:BODID>
                <_wcf:BusinessContext/>
        </oa:ApplicationArea>
        <_mbr:DataArea>
        <oa:Process>
        <oa:ActionCriteria>
                <oa:ActionExpression
actionCode="Register"></oa:ActionExpression>
        </oa:ActionCriteria>
        </oa:Process>
     <_mbr:Person>
      <_mbr:ParentOrganizationIdentifier>
        <_wcf:DistinguishedName>o=seller organization,o=root
organization</_wcf:DistinguishedName>
      </_mbr:ParentOrganizationIdentifier>
      <_mbr:Credential>
        <_mbr:LogonID>jsmith</_mbr:LogonID>
        <_mbr:Password>abc123def</_mbr:Password>
      </_mbr:Credential>
      <_mbr:ContactInfo>
        <_wcf:ContactName>
          <_wcf:PersonTitle>Mr.</_wcf:PersonTitle>
          <_wcf:LastName>Smith</_wcf:LastName>
          <_wcf:FirstName>John</_wcf:FirstName>
        </_wcf:ContactName>
        <_wcf:Address primary="true" type="Billing">
          <_wcf:AddressLine>123
Stone</_wcf:AddressLine>
          <_wcf:AddressLine>Apt 23</_wcf:AddressLine>
          <_wcf:City>Scarborough</_wcf:City>
         
<_wcf:StateOrProvinceName>Ontario</_wcf:StateOrProvinceName>
          <_wcf:Country>CA</_wcf:Country>
          <_wcf:PostalCode>M2K 2V4</_wcf:PostalCode>
        </_wcf:Address>
        <_wcf:Telephone1 type="Work2">
          <_wcf:Value>416-299-2932</_wcf:Value>
        </_wcf:Telephone1>
        <_wcf:Telephone2>
          <_wcf:Value/>
        </_wcf:Telephone2>
       
<_wcf:BestCallingTime>Evening</_wcf:BestCallingTime>
        <_wcf:EmailAddress1>
          <_wcf:Value>jsmith@ibm.com</_wcf:Value>
        </_wcf:EmailAddress1>
      </_mbr:ContactInfo>
    </_mbr:Person>
  </_mbr:DataArea>
</_mbr:Processperson>

 

Response

Response BOD AcknowlegePerson
Schema /xsd/OAGIS/9.0/Overlays/IBM/Commerce/BODs/AcknowledgePerson.xsd
Service data object

 

Sample AcknowlegePerson Response BOD

<?xml version="1.0" encoding="UTF-8"?>
<_mbr:AcknowledgePerson
xmlns:Oagis9="http://www.openapplications.org/oagis/9"
xmlns:_mbr="http://www.ibm.com/xmlns/prod/commerce/9/member"
xmlns:_wcf="http://www.ibm.com/xmlns/prod/commerce/9/foundation">
  <_mbr:DataArea>
    <Oagis9:Acknowledge/>
    <_mbr:Person>
      <_mbr:PersonIdentifier>
        <_wcf:UniqueID>123</_wcf:UniqueID>
        <_wcf:DistinguishedName>uid=jsmith,o=seller
organization,o=root organization</_wcf:DistinguishedName>
      </_mbr:PersonIdentifier>
        <_mbr:ContactInfo>
        <_wcf:ContactInfoIdentifier>
          <_wcf:UniqueID>1000</_wcf:UniqueID>
          <_wcf:ExternalIdentifier>
           
<_wcf:ContactInfoNickName>jsmith</_wcf:ContactInfoNickName>
            <_wcf:PersonIdentifier>
              <_wcf:UniqueID>123</_wcf:UniqueID>
              <_wcf:DistinguishedName>uid=jsmith,o=seller
organization,o=root organization</_wcf:DistinguishedName>
            </_wcf:PersonIdentifier>
          </_wcf:ExternalIdentifier>
        </_wcf:ContactInfoIdentifier>
        </_mbr:ContactInfo>
    </_mbr:Person>
  </_mbr:DataArea>
</_mbr:AcknowledgePerson>

 

Exceptions

If there is an error, the error is reported in the Response message. You can see the error details in the trace log, SystemOut.log.


Related Reference


Member services
Schema ProcessPerson.xsd
Member component message mapper configuration