I am working on accessing online CRM service from java/android.

For android, I have tried ActivityTracker android sample source code provided in the link 


Also, I have used CRM sdk library provided in this link https://github.com/DynamicsCRM/crm-mobilesdk-library-for-android .

Using this source code for android, I can execute my service request. Bu after setting CRM credential on login, some issues arose egarding redirect_uri/ reply_address that doesn't match or something. I used something address from the service uri and it worked. I could login but I got a blank page in the application. 

I then tried this sample https://code.msdn.microsoft.com/Consuming-CRM-REST-Service-ae24a15e.

But that also didn't work.

So now I am working Axis2 wsdl2java library using the steps suggested here in this link https://msdn.microsoft.com/en-us/library/jj602979.aspx .

Using this I can generate a code stub to connect to online CRM. But now, when I try for request with request name 'RetrieveAllEntities' at this codeline OrganizationServiceStub.ExecuteResponse response = serviceStub.execute(exe); 

I am getting error "org.apache.axis2.AxisFault: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter schemas.microsoft.com/.../Services:request. The InnerException message was 'Element value from namespace schemas.datacontract.org/.../System.Collections.Generic cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'.  Please see InnerException for more details."  

can anyone help me please? Please suggest me solution in the existing or suggest me any other working way to connect online CRM from android/java.