Dear all,
I'm using Java 7 (1.7.0_79) & Axis2 (version 1.6.1) to perform CRUD operations to CRM Online. I'm following the guide here:
msdn.microsoft.com/.../jj602979(v=crm.5).aspx
I can create new record using the example, but keep getting the following error when trying to run the guide to read record:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {schemas.microsoft.com/.../Contracts}KeyAttributes
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at java2crmpack.OrganizationServiceStub.fromOM(OrganizationServiceStub.java:47897)
at java2crmpack.OrganizationServiceStub.retrieve(OrganizationServiceStub.java:472)
at java2crmpack.Main.readAccount(Main.java:412)
at java2crmpack.Main.main(Main.java:166)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement {schemas.microsoft.com/.../Contracts}KeyAttributes
at java2crmpack.OrganizationServiceStub$Entity$Factory.parse(OrganizationServiceStub.java:45004)
at java2crmpack.OrganizationServiceStub$RetrieveResponse$Factory.parse(OrganizationServiceStub.java:32183)
at java2crmpack.OrganizationServiceStub.fromOM(OrganizationServiceStub.java:47758)
... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement {schemas.microsoft.com/.../Contracts}KeyAttributes
at java2crmpack.OrganizationServiceStub$Entity$Factory.parse(OrganizationServiceStub.java:44998)
... 5 more
I've tried using other Axis2 versions to no avail.
Any help would be appreciated.
Thank you.