×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Question In-App purchase Mock Service configuration problem

    Hi,
    I'm developing app which uses In-App purchases.
    I followed this tutorial for configuring In-App purchases Mock Service but when I tried to test it by this statement :
    Code:
    var t = await Windows.ApplicationModel.Store.CurrentApp.LoadListingInformationByKeywordsAsync(new String[]{"credit"});
    I got exception with HRESULT: 0x80072EFD (which means Connection Error : HttpSendRequest failed).

    So anyone have clue why the code cannot find the mock service?

    btw I think this statement from the toutrial isn't clear for me
    Add entry to the HOST file by following the format:
    #<IP address of the emulator mock service> marketplaceedgeservice.windowsphone.com
    which IP 127.0.0.1, my real IP or emulator IP?!


    Thanks in advance,
    Ahmed Rashad

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    291

    Re: In-App purchase Mock Service configuration problem

    Quote Originally Posted by AhmedRBasuony View Post
    btw I think this statement from the toutrial isn't clear for me

    which IP 127.0.0.1, my real IP or emulator IP?!


    Thanks in advance,
    Ahmed Rashad
    Hello Ahmed,

    127.0.0.1 is your local machine IP (the one where the mock-service is deployed)
    What gets me confused is the symbol "#" which refers to a comment, try removing it and test again.
    Code:
    127.0.0.1 marketplaceedgeservice.windowsphone.com
    Yassine,
    Last edited by Loukt; 2013-03-28 at 13:25.

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Re: In-App purchase Mock Service configuration problem

    I Know, I already removed it. I just quotted from the site.

    I also tried
    Code:
    http://localhost/v8  marketplaceedgeservice.windowsphone.com
    and I got 0x805A0194

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    291

    Re: In-App purchase Mock Service configuration problem

    Quote Originally Posted by AhmedRBasuony View Post
    I Know, I already removed it. I just quotted from the site.

    I also tried
    Code:
    http://localhost/v8  marketplaceedgeservice.windowsphone.com
    and I got 0x805A0194
    There is a sort of confusion in what they are saying <IP address associated with the emulator>
    have you tryed settings the emulator IP address in the entry ?

  5. #5
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Re: In-App purchase Mock Service configuration problem

    Quote Originally Posted by Loukt View Post
    There is a sort of confusion in what they are saying <IP address associated with the emulator>
    have you tryed settings the emulator IP address in the entry ?
    I agree with you the sentence is ambigous and not clear enough(at least for me).

    Yes I tried the emualtor IP and nothing changed.

  6. #6
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Re: In-App purchase Mock Service configuration problem

    I switched off the firewall and i put the IP address of emulator in the hosts file of emulator.

    <IP of Emulator> marketplaceedgeservice.windowsphone.com

    The mock service works well; the problem was with firewall.

    Anyone knows how to add exception for the emulator only?

  7. #7
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    291

    Re: In-App purchase Mock Service configuration problem

    Quote Originally Posted by AhmedRBasuony View Post
    The mock service works well; the problem was with firewall.

    Anyone knows how to add exception for the emulator only?
    I didn't thought it would be the Firewall,
    Since the mock service is hosted locally check this link . http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx

    Hope it helps,

    Yassine.

  8. #8
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Smile Re: In-App purchase Mock Service configuration problem

    Quote Originally Posted by Loukt View Post
    I didn't thought it would be the Firewall,
    Since the mock service is hosted locally check this link . http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx
    I tried it when Firewall is on and it didn't work

    I added these lines in "Documents\IISExpress\config\applicationhost.config":
    Code:
    <site name="IAPCatalogMockService" id="8">
                    <application path="C:\IapCatalog\CatalogServiceMock\CatalogServiceMock" applicationPool="IAPCatalogMockService">           
                    </application>
                    <bindings>
                        <binding protocol="http" bindingInformation="*:8080:<IP of Emulator>" />
                    </bindings>
                </site>
    Last edited by AhmedRBasuony; 2013-04-01 at 14:01. Reason: I was mistakenly turned off FireWall when I tried this link :(

Similar Threads

  1. Replies: 10
    Last Post: 2013-12-05, 14:27
  2. In App Purchase - testserver problem.
    By jacky.finalfantasy in forum Monetization APIs
    Replies: 4
    Last Post: 2012-06-18, 18:00
  3. Mock GPS
    By lokeshg in forum Symbian C++
    Replies: 6
    Last Post: 2010-09-23, 17:03
  4. trueType .TTF fonts for mock-up purposes?
    By jayhilwig in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-11-21, 00:38
  5. Service SMS Versus Configuration SMS
    By steveprocter in forum Smart Messaging
    Replies: 1
    Last Post: 2003-04-11, 16:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •