Problem connecting OData Service through SMP APP in Android App

Hi,
I'd like to develope an Android sample app with SMP and OData. Therefore I use the SMP Developer Version in the HANA Cloud and the Netweaver Service Gateway Demo System as OData Endpoint. I configured the app in the SMP as described in the openSAP Course "Introduction to Mobile Solution Development".
I successfully managed to integrate the MAFLogon component from the SMP SDK 3.0. The registration in the app to the SMP works fine. Then I tried to download the service document as described in the SMP SDK 3.0 Help Documentation (http://help.sap.com/saphelp_smp303sdk/helpdata/en/7c/09250170061014bb05d2c9cd16418c/content.htm?frameset=/en/7c/09404b70061014b89ba1222a327094/frameset.htm&current_toc=/en/7c/01cda6700610149b10c2f2a86d335b/plain.htm&node_id=3583&show_children=true#jump3577).
But when I'm trying to download the service document, I get a 403 response and in the SMP the log says "Application connection id is not provided". So I added the APPCID in Requestheaders. Then the download works and in the onsuccess method of the INetListener I'll get a 200 response. But in the SMP Logs I get a 401 response which says that I should supply the Authorization Headers. So I added them in the next try and I get a 500 response.
So I don't know what to. Can anybody provide me some advice?
Thanks in advance
Philip

Hi Philip,
Can you download the app from this tutorial and try, SMP 3 - Android Native App Development
The tutorial is based on the SMP 3 on premise version not on the SMP HANA cloud, but still it works. Only change you have to do is replacing the code clientConnection.setConnectionProfile(true, "66.175.100.29", "8080", null, null); with clientConnection.setConnectionProfile("https://smpxxxtrial.hanatrial.ondemand.com");
And it is not using MAFLogon component. You can use it if needed.
Thanks,
Midhun VP

Similar Messages

  • Error connecting OData service with Appbuilder

    Hello,
    I have created an OData service with SAP Netweaver Gateway and there isn't any problem while testing the service on the browser.
    I made all the right settings in SMP 3.0 and the system is reached successfully from the server.I am developing the app with appbuilder so when trying to connect with SMP onboarding service there is the following error. Failed to get Service metadata.I can see the metadata in the browser so i can not understand what this error means.
    If anybody can help it would be very useful because im in a deadlock.
    Thank you in advance!

    Hi IIliona,
    I am facing the same error
    I can see the metadata in the browser.
    The operation of entity set returns correct results as well.
    Did you fix the it?  If yes, do you mind sharing your solution?
    Thanks!!

  • PlayBook App to Android App...

    Hi,
    I've developed some apps with FB for the Blackberry PlayBook. Now, I'm looking at porting them to Android. The problem I have is that there is many screen sizes for Android.
    Do any of you have any tips, or what do you do to make your apps fit all of the screen sizes? What scale mode do you use? Do you make your assets one aspect ratio and leave borders around the app if it doesnt fit perfectly?
    Also as this will be my first Android app, do any of you have any tips or anything I should be aware of?
    Thanks for any help you can provide!

    Are you using Flex & MXML or is it a pure ActionScript project?
    Apart from the screen resolution you need to take the screen size into account. A button (or piano key ;-] ) on a Playbook 7" screen at 1024x600 will have a different physical size in centimeters than on a 10" Honeycomb tablet at a similar resolution, and may be harder to hit with your finger. Don't measure in pixels, but measure in cm's, mm;s or inches. Also, be aware that the DPI reported for many Android devices is incorrect and needs to be overruled.
    If you're using Flex, this should get you started with scaling and multiple densities:
    http://blogs.adobe.com/jasonsj/2011/05/comparing-css-media-queries-vs-application-scaling. html
    Or google for Flex Media Queries.
    My approach is to use Flex's built-in alignment. I've also found that contrary to Adobe's recommendations, on most modern devices (Playbook and the better Honeycomb tablets), performance is more than adequate to use MXML and vectors to skin most components. I tend to use pure AS only for components that need to be really performant, such as components that are in item renderers of long lists. There is little reason to code a dialog in AS if it only pops up once in a while.
    I've also found that using Flash to create vector assets, and embedding them in Flash Builder works quite well. Vectors are easy to scale, and careful use of bitmap caching, object pooling and re-use  helps a lot.
    Now, if your app needs to run on older or less powerful hardware (e.g. cheap Android 2.2 tabs), or if it's a fast-moving game where framerate is important, then that's a very different matter. But do test the various approaches on different devices, because all  roads lead to Rome...
    Cheers, - Jon -

  • Problems connecting to internet through airport extreme

    Hi everyone I am tyring to connect to the internet. I have Charter Digital at the highest speed. When I connect directly through the cable modem using DHCP i can connect to the internet just fine, but when I use the Airport using assing multiple IP addresses i cannot get the internet. When I run diagonostics, Everything works fine up to ISP after that (internet, Server) cannot connect. I've read through the boards and found nothing, so I could really use some help. I have the CAT 5 cable from the modem going to the WAN plug in the Airport.
    Thanks for any help you can give

    Thank you - some of the materials linked to that may have helped isolate my problem. Unfortunately, nothing's solved it yet. Pinging the Apple IP address gives me: No route to Host, with 100% packet loss on all attempts. I'm using an Airport Express card in a 1GHz G4 eMac running OSX 10.3.9, trying to connect to a Linksys BEFCMUH4 wireless broadband gateway modem/router. As stated above, all 4 ethernet ports are functioning correctly. All initial diagnostics on my end show there's a connection. Further diagnostics and attempts to get online show a lack of a connection but don't give any detail as to where it's encountering difficulty (or, if a traceroute shows something I'm not qualified to decipher it). It's even told me it's unable to configure succesfully. I've made sure the router itself is configured so there is no password necessary (it checks for an automatically logged number from my computer) and it shouldn't be locking me out from there (I hope). I was told running Airport Express with a non-Airport wireless router would be fine, but is it possible I was misinformed? The setup procedures available to help facilitate this all assume there's an Apple AirPort to search for and don't turn up my current router when they scan, leaving me with nothing to select from in that stage of the setup, and thus I cannot proceed. Am I doomed? Are there any gracious, exceedingly capable souls out there with the time and expertise to assist me? I'll be very grateful if someone can get me past this hurdle (I need to go wireless so I can get my air conditioner installed).

  • Mountain lion problems connecting to tv through receiver

    Things start out fine - I power up the Mac Mini, it sees my Vizio TV through my Pioneer VSX 1022-K receiver no problem (HDMI all the way through).
    I turn off the tv for a while, and come back and turn the TV back on.
    I see one of four things:
    Sometimes, it still works fine (but not very often).
    "No signal" on the TV.  Power off and on the TV and receiver in every combiniation ever, still no luck.
    Blue screen, this is rare, but sometimes it's just a blue screen.  I can't do anything though with a mouse or keyboard.
    White noise.  Again, I can't do a thing.  This is also rare.
    When 2-4 happens, I also lose the ability to VNC into the mac mini using Real VNC from Windows (it just stays at "connecting...").  In Mountain Lion, without this problem, I VNC right in in less than a second (after entering the PW, of course). 
    Sleep is disabled, screensaver is disabled. As I said, it's random; sometimes it's fine, other times it's broken.
    The ONLY fix when this happens is to hard power off and turn it back on.  Obviously not what I am wanting to do with my brand new mac mini.  I am about to throw this thing against a wall, or maybe return it, lol.
    With Lion, this did not happen (although I had plenty of other problems).
    I do not think it has to do with sleeping, because sleeping is disabled...  So what else could be the issue?   I've heard EDID issues, but I have no clue where to begin to fix that. 
    APPLE - PLEASE FIX YOUR BUG AND HELP.
    More people with this problem here: http://forums.plexapp.com/index.php/topic/44944-2011-mac-mini-on-mountain-lion-f reezing-when-attached-displays-are-power-cycled/
    Thanks.

    If your Vizio has audio return capability via HDMI, you could do it that way...although I'm not sure it would pass anything more than 2-channel stereo from the TV back to the receiver.  It's not a feature that my TV is capable of, so I can't speak to its real-life application.
    If your TV doesn't support ARC, you can buy a TOSlink cable to run digital audio from your mini to your receiver.  Check monoprice for some good deals on those cables.  I got one for less than five bucks. 
    It's a bit of a dance, but you would need to switch your audio output between HDMI (when you want the audio to come out of your TV) and TOSlink (when you want it to go to your receiver).  There are applescripts that can automate this so that you just double-click a link and it performs the switch.  I am running this exact setup in my house for the times when I want to watch a movie but everyone's asleep so I can't run my receiver.

  • Problem connecting to ISP through AE Modem

    So far, I been able to set up a wireless network in my home using an AirPort Extreme Base Station, but I'm unable to connect to an ISP via a dial-up connection through Airport's built-in modem.
    Airport on my MacBook is on and attempts to connect, but, after several attempts, it notes that my password and/or username are invalid--despite reentering them several times in Airport Utility. I am using a MacBook, Airport Extreme, and AT&T Worldnet® as my ISP. I am connected to the internet now through Worldnet and my Indigo iMac. I've double checked my configurations--why can't I connect?
    Thanks in advance.
    Andrew L.

    Crawling under a rock... I incorrectly typed my password--caps lock mistake, oops.
    Andrew L.

  • Problem connecting Curve 8330 through Bluetooth

    The Curve and my Asus running Windows XP Pro "see" each other, the BlackBerry reports a connection, but Windows always informs me that the set-up failed and the desktop manager does not recognize the Curve.
    In the desktop manager, the option for enabling a Bluetooth connection is greyed out and unaccessible.
    Can anybody help me here?
    Thanks

    Thanks urumilton, I found that article in the meantime. Now my question would be: Where can I get the generic Windows driver stack?
    I uninstalled the Toshiba Bluetooth driver stack on my system and restarted, hoping Windows would find the generic driver. Unfortunately it just re-installed the Toshiba driver.
    I also tried uninstalling Toshiba and installing the WIDCOMM stack, but that does not work either.
    I have been reading this string
    http://www.blackberryforums.com/bluetooth-connection/28166-how-use-native-bluetooth-drivers-most-blu...
    but neither of the problems seem to closely resemble mine, since I am not using a dongle but the on board BT of my Asus U6S.
    Any further ideas?
    Thanks!

  • Recovery Tool - problem connecting to service

    I'm trying to roll back my phone from DP, so I can get the cyan update.
    Nokia Software Recovery Tool (1.4.3) seems to get the download (I've occasionally seen the progress bar), but I repeatedly, but not consistently, get the error - "A network problem has occurred".
    Any ideas what's going on?  Anyone seen this before?

    In the Nokia Software Recovery Tool, what is your 7-letter code (Nokia Product Code)? That code determines your firmware variant which determines your current version. We can check together whether you have the correct variant, only with that code.

  • Error in Connection Odata

    Hi All,
    I am trying to connect to OData service through adding Webservice. Although my credential are correct but still its throwing 400 status code 'Bad Request'.
    I also tried these credential and URL in Cloud Business application in VS2013.
    I chose Data source type as OData Service put the Odata service endpoint and username/password but I am getting Authentication Error
    I have used these credentials and Odata URL  in excel and able to connect to data.
    So please let me know what can be the issue..
    thanks in advance
    Bajrang

    HI
    Please check the below links and Note’s
    http://www.upenn.edu/computing/da/bo/webi/qna/iv_webi_ERR_WIS_30270.html
    Note 1497849 - "An internal error occured while calling 'executeDrillAction' API. (Error: ERR_WIS_30270)" when drilling up on a dimension of a webi report based on BW
    Note 1290720 - Error: An Internal error occured while calling 'SubmitReport' API (Error: ERR_WIS_30270) while refreshing migrated WebIntelligence reports in edit mode
    Note 1436964 - An internal error occured while calling 'processDPCommands' API. (Error: ERR_WIS_30270)
    how to increase swap timeout:
    https://bosap-support.wdf.sap.corp/sap/support/notes/1308143
    https://bosap-support.wdf.sap.corp/sap/support/notes/1417838
    I think it's related to server connectivity error. please check with basis team or Finally try to new installation

  • Android apps can't get connected with Internet on 10.3.1 os

    With updating the os 10.3.1..... now my z10 device can't get connected with internet....on android apps...like line app,etc....its showing error msg of check your Internet connection....same problem on other android apps...

    hello guri,
    can you give us the exact error message, or even a screenshot please ?
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Downloadin​g Android Apps

    Hi I am a new Bbplaybook user getting frustrated as I am not tech sabi. I tried.to down load apps from android app store but when trying to open it gives me an error such as unable to find default app. I also did not know how to start a topic here. Help will be much appreciated. Thank you. 

    Sorry, you can't download apps to the Playbook direct from the android app store! You can download from BlackBerrys AppWorld, or have android apps converted into a bar file which you can sideload. If you need help with the latter, please say so..
    Otherwise, enjoy AppWorld.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problem connecting to webservice in AIR app

    Ok, bare with me, I am a newbie to flex development. I am having a problem connecting to a SOAP web service through my AIR app.
    I have the service running on a Glassfish server and I have verified that it is working fine.
    I have the following cross domain file in my server root (though I'm  not sure if this is necessary with an AIR app):
    <?xml  version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*"/>
    <site-control permitted-cross-domain-policies="all" />
    <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
    </cross-domain-policy>
    I want to create an AIR application that connects to this webservice but every time I connect I get this error message:
    "Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL....."
    But...... when I change my AIR application to a web application and run it in the browser it connects to the web service perfectly.

    Does anyone have any ideas on this?

  • I installed viber on my iPhone 5s. After entering my number, it says:" No Service It seems to be a problem connecting to viber's service.please check your connection and try again" Nevertheless I have connected to the internet. Could you please help me?

    I installed viber on my iPhone 5s. After entering my number, it says:"
    No Service
    It seems to be a problem connecting to viber's service.please check your connection and try again"
    Nevertheless I have connected to the internet.
    Could you please help me?

    Hello!
    Using a cradle with the Tungsten E2?  Tried bypassing the cradle and just use the hotsync cable?  Tried a different computer yet?  Somehow, the PC is having problems getting a signal from the device.  I assume you have the laptop charger plugged into the laptop during this?  Not going through a docking station or port-replicator.
    One crazy thing you can try is unplug the charger from your laptop, remove the battery from the laptop and leave it out for like 10mins and put it back in and reboot the laptop.  This should not cause side effects but still contact your OEM to make sure that nothing else is needed after leaving the battery out for extended period of time.  Keep me posted.
    Post relates to: Treo 650 (Unlocked GSM)

  • Error during connecting to the odata service of Employee

    Hi Everyone,
    When I am calling the employee odata service the following message is coming,
    and below error messages are coming in the console,
    2014-04-01 17:19:53 Device API logging initialized - DEVICE 2014-04-01 17:19:53 registerResourcePath ('', 'resources/') -  sap.ui.ModuleSystem 2014-04-01 17:19:53 URL prefixes set to: -  sap.ui.ModuleSystem 2014-04-01 17:19:53  (default) : resources/ -  sap.ui.ModuleSystem 2014-04-01 17:19:54 registerResourcePath ('employee_test', './employee_test/') -  sap.ui.ModuleSystem 2014-04-01 17:19:56 The following problem occurred: HTTP request failed400,Bad Request,
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF1039D3100155D116802 -  2014-04-01 17:19:56 message: HTTP request failed Response Text:
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF1039D3100155D116802 Status Code: 400 Status Text: Bad Request -  2014-04-01 17:19:56 The following problem occurred: HTTP request failed400,Bad Request,
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF10E9D3100155D116802 -  2014-04-01 17:19:56 message: HTTP request failed Response Text:
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF10E9D3100155D116802 Status Code: 400 Status Text: Bad Request -  2014-04-01 17:19:57 The following problem occurred: HTTP request failed400,Bad Request,
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF1199D3100155D116802 -  2014-04-01 17:19:57 message: HTTP request failed Response Text:
    SY/530Atleast one filter parameter is mandatoryBA93B9E3C3CCF1199D3100155D116802 Status Code: 400 Status Text: Bad Request -
    And also when I am calling the entity set 'EmployeeCollection' of the odata service it is giving the below error,
    Kindly tell me, which will help me to cal the data of the EmployeeCollection entity set of the odata service. How I can connect to that odata with the help of the NetWeaver Gateway? And why this errors are coming? Do I need any authorization from our HR team of our company to connect to this odata service to retrieve data or the data should come automatically?
    Regards,
    Soumya

    To understand the error,
    1.go to developer console in chrome by pressing F12.
    2. Next go to network tab and refresh the application by pressing F5.
    3.In the network tab you will see an OData service call being fired to fetch  Employee collection data. 4.Right click on the call and open it in a new tab. There you can see the actual error message.
    From the error you have posted it looks like, the Entity collection expects atleast one filter condition to be passed while calling the collection. Calling the Entity collection without any filter is equivalent to 'SELECT *' without any WHERE clause. However in this case the particular service enforces a where clause by specifying a $filter option. If no $filter is supplier it raises an exception which you get here.

  • Problem connecting to Web Services server

    Hello,
    I've had my printer running perfectly since I installed it 3 days ago but today I am nolonger able to use eprint. I can still scan and print from my home PC and laptop but I am unable to send emails directly to the printer now. This was working fine and I used the feature fairly often without error but today no emails arrived. When I logged on to the eprint web site using my google account {Personal Information Removed} the status of the printer said disconnected. I've tried deleting the printer and re-attaching it (which had no effect) and I've now tried disabling web services on the printer then re-enabling it. When I try this I now receive the following error: Problem connecting to Web Services server.
    The printer model is a HP Photosmart Premium C310a with the lastest software update. The printer is connected to my network via Wifi and is reachable and usable from all my PC's.
    It seems to me that there is something wrong with the software configuration on the printer, the reason I think this is because the screen interface slows down to a crawl after some use and when this happens it is not possible to switch the printer off via the power button. The only solution is to pull the power cable! This is something new and didn't happen before, is there a way to reset to factory default, the option in the menu doesn't seem to reset everything?
    Please advise ASAP.
    Thanks in advance,
    Stuart {Personal Information Removed}

    Greetings,
    The ePrint Service has been having some issues after the upgrade. The server team has found and fixed a bug in the latest release that affected connectivity. If you're having problems, please unregister your product (from the Web Services menu, select "Remove Web Services"), then register again (from the Web Services menu, select "Enable Web Services).
    After reregistering, I have been very successful using both ePrint and the Print Apps using my HP LaserJet CM1415. It has been staying connected, and promptly printing jobs I send to it. It has also been reconnecting after I powercycle. I sincerely hope you have the same experience. We had an ePrintCenter outage a few minutes ago that may have affected connectivity, but I am able to use ePrint and the Print Apps again as of 5:15 Mountain Time.

Maybe you are looking for

  • SSRS 2008 Chart legend colours not matching series colour.

    Hi, I believe this issue has been raised before. In SSRS 2005 & 2008 R2 though I am yet to find a solution other than a lengthy (messy) workaround. I have a chart based on the following data: Data field - Count(ChangeID) Category - Change_Categorisat

  • Contacts on macbook not syncing with icloud

    contact added on iphone syncs with icloud but contact does not show up on ibook

  • Why doesn't my iTunes Library list any  track info.  for the CDs I burn?

    I've bought a new PC and after setting up iTunes i began to copy my CD library back into my new iTunes library on my new computer. But when I copy a CD now the only album information that copies is "track 1" "track 2" "track 3" etc. No song titles, n

  • Video to Craig's list?

    Does anyone know how to make a photo of a video and send to Craig's list? Or maybe send the video to Craig's list? I don't have quick time pro or any other photo softward. Is it worth it to purchase Quick Time Pro? What else could I use that for? Tha

  • Help with iphoto book in iphoto 08

    Ok.. I made a book in iphoto 08 using the Crayon theme. the cover in my theme is blue... When I click order book... it only gives me two options for a cover... brown or black... am I missing something??? are these themes not available to print even t