cancel
Showing results for 
Search instead for 
Did you mean: 

android native application for Odata online and offline application xml parser issue

Former Member
0 Kudos

Hi,

Am developing android native application which is going consume odata service , which i have already created and I could register LDAP user id on the server. But when am trying to access the data it shows the xml parser exception. The exception as follows

javax.xml.parsers.ParserConfigurationException: http://xml.org/sax/features/external-general-entities

  at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.setFeature(DocumentBuilderFactoryImpl.java:101)

  at com.sap.smp.rest.SMPParser.parseXmlFile(SMPParser.java:24)

  at com.sap.smp.rest.UserManager.onSuccess(UserManager.java:643)

  at com.sap.mobile.lib.request.RequestManager$SuccessObject.execute(RequestManager.java:795)

  at com.sap.mobile.lib.request.RequestManager$SuccessThread.run(RequestManager.java:846)

If sombody has done please share how to register the connection and getting data using odata service and stored it on device. Later on the user can sync whenever he required.

Regards

Sathiya

Tags edited by: Jitendra Kansal (Moderator)

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sathiya,

Did you check the same in REST Client?  What error you are getting? There are execellent series of blog by Claudia

not sure if you have already looked at them.

Regards,

JK

Former Member
0 Kudos

Hi,

Thanks for reply.. When I run the application from device I can register the device with my username .

But when I try to access the service in RestClient in chrome or firefox am not getting response 0 response. Eventhough I had given Basic Authorization header it's keep on asking to enter ldap authentication.

Please check in the screenshot attached.

Regards,

Sathiya

Former Member
0 Kudos

It's working by removing authorization header and click send the chrome browser will automatically popup there I have entered LDAP username and password.

If we are using Rest Client on chrome we have to hit by Authorizaiton header with Basic encode value of username and password.

Regards

Sathiya

Former Member
0 Kudos

Hi,

Now I cannot fetch the data it shows 200 Response code but CSRF token not generating..

Answers (0)