Hi Expert ,
I have used add data(Customer/Product/ReleaseProduct/SalesOrder) in Dynamics AX 2012 using inbound port with htp soap request . Now i want to update that entity data but i can't find any reference document for update data where i need what are primary entity keylist for that entity. I am trying to update customer as below format but getting error :
Request ACtion : schemas.microsoft.com/.../update
Request Body :
<s:Envelope xmlns:s="">schemas.xmlsoap.org/.../">
<s:Header>
<h:CallContext xmlns:h="">schemas.microsoft.com/.../datacontracts" xmlns="">schemas.microsoft.com/.../datacontracts" xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<Company>dat</Company>
</h:CallContext>
</s:Header>
<s:Body xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<CustomerServiceUpdateRequest xmlns="">schemas.microsoft.com/.../services">
<EntityKeyList xmlns="">schemas.microsoft.com/.../EntityKeyList">
<EntityKey xmlns="">schemas.microsoft.com/.../EntityKey">
<KeyData>
<KeyField>
<Field>AccountNum</Field>
<Value>W31</Value>
</KeyField>
</KeyData>
</EntityKey>
</EntityKeyList>
<Customer xmlns="">schemas.microsoft.com/.../Customer">
<CustTable class="entity">
<DirParty xsi:type="AxdEntity_DirParty_DirPerson" class="entity">
<PartyNumber>000001889</PartyNumber>
<PersonName class="entity">
<FirstName>Test</FirstName>
<LastName>w31</LastName>
</PersonName>
</DirParty>
</CustTable>
</Customer>
</CustomerServiceUpdateRequest>
</s:Body>
</s:Envelope>
Response Error :
IInvalid document schema. The following error was returned: The element 'CustTable' in namespace 'schemas.microsoft.com/.../Customer' has invalid child element 'DirParty' in namespace 'schemas.microsoft.com/.../Customer'. List of possible elements expected: '_DocumentHash, AccountNum, AccountStatement, Affiliated_RU, AgencyLocationCode, BankAccount, BankCentralBankPurposeCode, BankCentralBankPurposeText, BankCustPaymIdTable, BirthCountyCode_IT, BirthDate_IT, BirthPlace_IT, Blocked, CashDisc, CashDiscBaseDays, CCMNum_BR, ClearingPeriod, CNAE_BR, CNPJCPFNum_BR, CommercialRegister, CommercialRegisterInsetNumber, CommercialRegisterSection, CommissionGroup, CompanyChainId, CompanyIdSiret, CompanyNAFCode, CompanyType_MX, ConsDay_JP, ContactPersonId, CreditCardAddressVerification, CreditCardAddressVerificationLevel, CreditCardAddressVerificationVoid, CreditCardCVC, CreditMax, CreditRating, Curp_MX, Currency, CustClassificationId, CustExcludeCollectionFee, CustExcludeInterestCharges, CustFinalUser_BR, CustGroup' in namespace 'schemas.microsoft.com/.../Customer'.
Thanks
surajit kundu