Skip to main content
Participant
October 9, 2011
Answered

air app doesnt connect to web service even though swf does

  • October 9, 2011
  • 2 replies
  • 1528 views

hey there,

i'll try and be brief. we built a kiosk app in flash builder as a pure as3 project. when we went to convert it to a air app everything seems fine except for two issues. one is that we cant use the Security.allowDomain("*"); tage. no big deal we comment that out but when we do we cant connect to the web service we are using. here is the error msg we get:

url http://api.macys.com/v2/catalog/product?prodid=559529&prodid=586262&prodid=442702&prodid=539030&prodid=444331&prodid=593389&prodid=102435&prodid=519743&prodid=357571&prodid=128285&prodid=407708&prodid=209799&prodid=417917&prodid=498705&prodid=131858&prodid=597478&prodid=142166&prodid=470687&prodid=584020&prodid=167015&prodid=75190&prodid=432111&prodid=481224&prodid=549755&prodid=483429&prodid=414178&prodid=596422&prodid=385591&prodid=226280&prodid=142163

ioErrorHandler: errorProductId: WebApplicationException

ioErrorHandler: currentTarget: Error #2032: Stream Error. URL: http://api.macys.com/v2/catalog/product?prodid=559529&prodid=586262&prodid=442702&prodid=539030&prodid=444331&prodid=593389&prodid=102435&prodid=519743&prodid=357571&prodid=128285&prodid=407708&prodid=209799&prodid=417917&prodid=498705&prodid=131858&prodid=597478&prodid=142166&prodid=470687&prodid=584020&prodid=167015&prodid=75190&prodid=432111&prodid=481224&prodid=549755&prodid=483429&prodid=414178&prodid=596422&prodid=385591&prodid=226280&prodid=142163

here is the error from charles:

<error>

          <errorCode>103</errorCode>

          <message>Incorrect arguments types or combination</message>

          <errorDetail>WebApplicationException()</errorDetail>

          <success>false</success>

</error>

now if we run just the swf it connects fine. the only reason i need this app to be in an air wrapper is so that i can supress the print dialog box. otherwise i would just create a exe file.

any ideas would be lovely!

thanks

This topic has been closed for replies.
Correct answer maxkool

ok, found the issue!

when we built the as3 project and we set up the web service calls we used post since get was causing us issues. We were connecting to a qa service so that may of have something to do with it. In any case we changed the headers in the air app to get and it seems to work fine. Why would it work in the swf and not the air who knows, but there ya go!!

Thanks

Jorge

2 replies

October 10, 2011

Hello,

Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the problem. Did this occur on the desktop or mobile device? Finally, once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?

Thanks!

maxkoolAuthor
Participant
October 10, 2011

thanks,

here is the url for the bug i created:

https://bugbase.adobe.com/index.cfm?event=bug&id=2997155

maxkoolAuthorCorrect answer
Participant
October 10, 2011

ok, found the issue!

when we built the as3 project and we set up the web service calls we used post since get was causing us issues. We were connecting to a qa service so that may of have something to do with it. In any case we changed the headers in the air app to get and it seems to work fine. Why would it work in the swf and not the air who knows, but there ya go!!

Thanks

Jorge

maxkoolAuthor
Participant
October 9, 2011

this must be another good one....i love stumping you guys!!