Create a new contact for the organization by using the customer

Hi,

I am trying to create the new contact for the organization by using the customer using the AIF WCF service. I am using the service called “DirContactPersonService”, I can create the new contact for the organization, but my requirement is to create the new contact by using existing customer (person).

My code creates the new person in the “DirPartyTable”. I have to use the existing party (Customer or person) for creating the contact for the customer by using the AIF WCF service.

Code link:

http://www.stoneridgesoftware.com/calling-the-contacts-service-in-ax-2012/

Can you help me?