Mark H
Posts: 0
Joined: Tue Apr 28, 2015 2:18 am

Working with proprietary web service from mobile preview

What I'm trying to do is to have a web service get called when the mobile app starts. And I would like to test it using the mobile preview gui.

I created an Appery service that calls a proprietary enterprise web service via the proxy. When I test the web service in the Appery service definition screen it works.

But when I test using the mobile preview with the service configured to get called on deviceready the gui displays but the web service isn't getting called.

Should I expect this to work?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Working with proprietary web service from mobile preview

Hello,

Could you check are there any errors in console? This: http://devcenter.appery.io/documentat... should help.

Mark H
Posts: 0
Joined: Tue Apr 28, 2015 2:18 am

Working with proprietary web service from mobile preview

Hi Sergiy

Stepping through the generated code the deviceready event handler is getting registered in startScreen_deviceEvents but the event is never being triggered.

If I add the same actions to the startScreen_OnLoad they are triggered.

I am testing with both Chrome Version 42.0.2311.90 m and FireFox 37.0.2.

Mark H
Posts: 0
Joined: Tue Apr 28, 2015 2:18 am

Working with proprietary web service from mobile preview

One other issue:

Code: Select all

    "POST [url=https://api.appery.io/rest/1/proxy/tunnel]https://api.appery.io/rest/1/proxy/tu...[/url] 400 (Bad Request)" 

This occurs when the POST is called in mobile preview but not from the service definition screen.

The console doesn't report any other errors.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Working with proprietary web service from mobile preview

  1. Use "page show" event if your service uses UI components.
    1. Please send us full service response from the network tab. http://prntscr.com/6zimjp
Mark H
Posts: 0
Joined: Tue Apr 28, 2015 2:18 am

Working with proprietary web service from mobile preview

The service isn't using UI components yet.

The image should be at the link above.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Working with proprietary web service from mobile preview

Hi Mark,

It seems this is response from your 3rd party service..

Could you please give us your app public link and describe steps to reproduce this problem in your app?

We will check it.

Regards.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Working with proprietary web service from mobile preview

Hi Mark,

It seems this is response from your 3rd party service..

Could you please give us your app public link and describe steps to reproduce this problem in your app?

We will check it.

Regards.

Return to “Issues”