Web service call - works locally but not on mobile?

Hi,
I have a web service call (the service is hosted on the cloud so it's an external, permamnent domain) which works fine when I'm testing it locally using the Flex Buritto built in emulator or directly using my browser.
But when trying from an android phone (tried a few of them - nexus one, nexus s and galaxy tab) the service is being called but never returns anything.
Is there a good way to trace to call / understand the problem?
Thanks,
Nir

Oh. well that would explain alot of it. its not a stupid question we are all learning. You have to put a crossdomain xml in server on the root directory. there are alot of different ways to implement it.
this should point you on the right direction.
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
here is a very basic format basically allowing anyone to call my service.
<?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="*" />
</cross-domain-policy>
miguel

Similar Messages

  • cffeed caching works locally but not on server

    So I got my new Hostek account set up (woohoo!) and I've started uploading some basic files so I can do thinks like validate my code and make sure everything's working.  One thing that does not work (but does locally) is my news feed caching.
    Pulling in two RSS feeds was seriously slowing down my index page loading, so I stole a trick from Ray Camden on caching the feeds.  It works perfectly on my dev machine at home, but doesn't work on my hosted account.
    Here's the exact code being used:
    <cfset feedurl = "http://velonews.competitor.com/feed">
    <cfset cacheTime = #createtimespan(1,0,0,0)#>
    <cfif not structKeyExists(application,"rsscache") or dateDiff("n", application.rsscache.created, now()) gt cacheTime>
        <cffeed source="#feedurl#" query="entries">
        <cfset application.rsscache = structNew()>
        <cfset application.rsscache.data = entries>
        <cfset application.rsscache.created = now()>
    </cfif>
    <ul>
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    </ul>
    I tried wrapping a try/catch around the top section (above the <ul>) and still got nothing for an error message.  The page just stops being rendered at that first <ul>.
    I'm not sure why it works locally but not on the web server.  Any ideas?

    Miraculously, I got it working.
    I changed this:
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    To this:
    <cfoutput maxrows="6" query="application.rsscache.data">
    <li><a href="#rsslink#">#title#</a></li>
    </cfoutput>
    And bingo!  It worked. Perhaps it's an idiosyncrasy between CF9 and CF10.

  • Flash site works locally but not online (uploaded to server)

    We have bought a flash portfolio template and have customized it with our pictures, video, etc.
    When we test it locally on our computer (using different web browsers) it all works perfectly well. We have uploaded the finished website to our server and when you go to the address online, it doesn't work (a loader progress shows but it is stopped and nothing happens).
    We have however uploaded the original template we bought and it works perfectly online.
    The template consists of and index.html, various .swf, and various .xml that we have modified according to the template instructions (it also contains a java script folder we haven't touched).
    What is it wrong with our modified template - it works locally without problem…!
    Thanks for your help

    When a Flash file works locally but not on-line, it's almost always a pathing issue (provided you did upload ALL files and do not have something missing... as suggested by Ned).
    A "pathing issue" results when the main .swf cannot find one or more of the associated Flash files...like an xml file or images.
    It can be something as simple as using switching file names to all lower case. Local machine is not case sensative... most servers are. So "My Photo.JPG" is not the same as "my_photo.jpg". When naming files, best to use all lower case, no spaces in any file or folder names... use_underscore_instead.
    But the most common cause is that those associated files (xml, images, etc.) are not pathed relative to the Web page where the main .swf is embedded. Pathing to the .xml and image files should be as though the .swf was located in the same folder as the Web page... NOT the actual location of the .swf file.
    And that includes paths to the xml file and paths to image files coded into those xml files. Everything need to be coded relative to the Web page.
    This topic has been covered a number of times here:
    http://forums.adobe.com/message/4368273#4368273
    http://forums.adobe.com/message/4294529#4294529
    http://forums.adobe.com/message/4280086#4280086
    http://forums.adobe.com/message/4267408#4267408
    Best wishes,
    Adninjastrator

  • [AS3] EventDispatcher works locally but not remotely

    Hi,
    I am very new to Action Script and have the following
    problem. I hope someone can point me in the right direction.
    I have a small video player app. I have added the FLVPlayback
    component to the stage and set some properties via action script
    (AS 3)
    I then instantiate a class to go and retrieve some XML,
    register an eventListener to wait for the XML to be loaded and once
    the event has fired, load the FLV file (just hard coded at the
    moment) into the FLVPlayback object.
    This works when testing in the Flash IDE but not when I
    publish the movie to my webserver. I have tried commenting out the
    player.load() and just adding a textfield and again this works
    locally but not when I publish to the webserver. I have included
    some code snippets below.
    Can anyone tell me where I am going wrong?
    Any pointers much appreciated.
    Thanks
    Martin

    Hi,
    I found the problem if anyone has the same issue. I was
    passing some FlashVars in incorrectly using the
    AC_RunActiveContent.js that comes with Flash. I have switched to
    swfobject and all is well.
    thanks

  • Facetime works local but not long distance

    i have been using facetime for 2 years.  Last week (soon after upgrade 8.2)  my service became intermitant.  it works locally,  but long distances it is ringing but no one is answering...
    I am using airport extreme....so not sure if its extreme or something else causing this...

    chris,  thanks so much but i think it has to do with port somehow.
    since i am out of the us it works fine in where i am at,  but trying to get to the us in just rings off the hook and no one can pickup....so it gets a notification that the call is coming through but ends at that point.....and i am just pushing voice only not video.
    other people where i am at use facetime and are able to talk to people in the US...I have been doing so until 1 week ago,  when i downloaded 8.2   Thanks for your reply looking forward to understanding what else i can do......
    ps already installed firmware in extreme...but didn't solve the issue.

  • Swf works locally, but not on server

    I have an issue with an xml-driven swf file. It plays fine when I test the site locally, but not when it's uploaded to a server. Here is a link to the page. There are many posts on this and other forums describing the same problem, though I can't find the right solution. The only thing it has convinced me of, is that it is probably a pathing problem. I purchased the file online, and instead of one swf and one xml there are about ten of each to make it work. In addition to this there are about 40 .as files. (all this to make it "easier" to customize).  Since I plan to use this banner rotator on multiple pages, it will be very unconvenient to upload all these files for every page I make. I checked with support for this product, and was told I could make a flash directory, only duplicating the xml-files for each new page and linking the xml back to the swf-files. Otherwise the support answer was very short and unhelpful. I have renamed every path in the xmls so that it should be right. As I said, the file works locally, so I'm not sure what I am doing wrong.
    I have posted in adobe forums before, and I have alwas found helpful and kind responses.
    Thank you,
    Siri

    They're all uploaded to the server, it is also possible for me to dowload them from there. When i run the main swf file through flash player debugger, I get this message:
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/xml/abrMain.xml
              at com.sQrt121.utils::CustomLoader/configureLoader()
              at com.sQrt121.utils::CustomLoader()
              at com.sQrt121.utils::LoadJob/initJob()
              at com.sQrt121.utils::LoadJob()
              at com.sQrt121.utils::ContentLoader$/addJob()
              at AbrMain/init()
    So I guess it can't locate the xml folder (since it is not there), but I don't know how to change the path. I can change it in the xml, pointing to the swf, but how do I do it the other way?
    This is the main xml-file:
    <?xml version='1.0' encoding='UTF-8'?>
    <abrMain
              width                              = "300"
              height                              = "250"
              pauseOnOver                    = "off"
    >
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrcontent.swf"                                    xml = "xml/abrContent.xml"                                        config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrbuttonscolor.swf"                               xml = "xml/abrButtonsColor.xml"                                        config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrpreloadercircle.sw f"               xml = "xml/abrPreloaderCircle.xml"                              config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrpreloaderline.swf"                               xml = "xml/abrPreloaderLine.xml"                              config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrplaypause.swf"                               xml = "xml/abrPlayPause.xml"                                        config          = "xml/config.xml"/>
    </abrMain>
    the abrMain.xml tells the swf what files it shold use, and where to find them, but where do I tell the abrMain.swf to find the xml? Maybe this is an issue for product support instead, though they only answer short and cryptic.
    Murray *ACP* wrote:
    None of your SWF files are found in the location where the page's code places them.
    For example:
    <param name="movie" value="../../../flash/produkter/deploy/abrmain.swf" />
    Did you upload them?

  • Web Service Tester works perfectly but the Web service is not.

    I have a web service developed in EDQ that works as expected when I check using Web Service tester.
    However when the upstream server sends the request to this web service, the response it gets is not as expected. "
    This difference is only for a particular rule.(if Street Address Line 1 is 'Holiday', then the Customer Status should become 'C')
    All the other rules are working s expected.
    What can this difference be due to?
    Thanks and Regards.
    Ravi

    The only logical explanation is that the client sending the request is sending different data. Perhaps it may be something subtle such as trailing whitespace (with the process you have constructed not coping with this)?
    Mike

  • Purchase order tutorial works local but not on server

    Hello, I have the trial version of LC Designer ES and have been going through the tutorials which work fine locally. I need a PDF form to be populated by an XML file (just like the Purchase Order Tutorial) but located on my web server - so that anyone anywhere can open the form from their browser. I have changed the paths for the Schema and the XML but still no luck. All the files (PDF, XLS, XML) are on the root level of the site. Any thoughts on what I need to do??
    Thanks for any help.
    jim

    Jim,
    The primary consideration is the client type.
    If your users have Acrobat, then they can import/export the XML, make a direct connection to the database, call a Web Service sitting in front of the database, or call a server-side process to get the data, for example.
    If your users have Reader, then you are required to use LiveCycle Reader Extensions ES to rights-enable a PDF. A PDF can be assigned an import/export right, for example. When a user opens a PDF with import/export rights, Reader behaves like Acrobat. The most common use of Reader Extensions ES is to enable a PDF with local save so Reader clients can fill interactive PDF forms and save locally.
    Steve

  • Web Service Client works from IDE, not standalone

    I'm using the Netbeans 5.5 IDE & JAX-WS 2.0 & jdk1.6.
    I use an Applet to call a webservice on an embedded web-server which has gSoap generated WebServices.
    The code works fine if I run it from the IDE. However, the following error occurs if I run it from the webserver:
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager
         at com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(Unknown Source)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
         at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
         at javax.xml.ws.Service.<init>(Unknown Source)
         at NetburnerWebfunctions.Webfunctions.<init>(Webfunctions.java:38)
         at IO.getDIPs(IO.java:32)
         at IO.<init>(IO.java:25)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager
    I believe this class is being found since I got a different error when I had the classname wrong.
    The console has reported:
    network: Connecting http://192.168.0.2/META-INF/services/javax.xml.ws.spi.Provider with proxy=DIRECT
    to which I serve up a file with the first line as:
    NetburnerWebfunctions.WebfunctionsPortType
    This class (autogenerated by Netbeans webservice import) contains:
    @WebService(name = "WebfunctionsPortType", targetNamespace = "http://www.red-earth.co.uk/Webfunctions")
    public interface WebfunctionsPortType {
        @WebMethod(action = "http://www.red-earth.co.uk/Webfunctions/getDIPs")
        @WebResult(name = "result", targetNamespace = "http://www.red-earth.co.uk/Webfunctions")
        @RequestWrapper(localName = "getDIPs", targetNamespace = "http://www.red-earth.co.uk/Webfunctions", className = "NetburnerWebfunctions.GetDIPs")
        @ResponseWrapper(localName = "getDIPsResponse", targetNamespace = "http://www.red-earth.co.uk/Webfunctions", className = "NetburnerWebfunctions.GetDIPsResponse")
        public int getDIPs();
    }In the applet the webfunction is called using the following code:
    NetburnerWebfunctions.Webfunctions service =
      new NetburnerWebfunctions.Webfunctions(new java.net.URL("http://192.168.0.2/webfunctions.wsdl.xml"),
      new javax.xml.namespace.QName("http://www.red-earth.co.uk/Webfunctions", "Webfunctions"));
    NetburnerWebfunctions.WebfunctionsPortType port = service.getWebfunctions();
    result = port.getDIPs();The Applet is placed on the html page thus:
    <APPLET  code="IO.class" Archive="Applet.jar" width=350 height=200></APPLET>Any Ideas why this error occurs - have I got the provider wrong?

    Hi,
    I could run the client as an application but not as an Applet out side IDE.
    can u please help me with sample code if u r done with Applet.
    if u want i can give u my sample code.
    thanks in advance.

  • HTTPService works locally, but not on internet

    This local HTTPService call works:
    <s:HTTPService id="userRequest" url="http://127.0.0.1:8888/myproj/users.php" useProxy="false" method="POST">
    But when I attempt to use this:
    <s:HTTPService id="userRequest" url="http://mydomain.com/plt/test/users.php" useProxy="true" method="POST">
    On my internet hosting service, I get an error:
    [RPC Fault faultString="[MessagingError message='Destination 'DefaultHTTP' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'DefaultHTTP'"]
    I have read some stuff about a config file, but do not really understand how it applies to my mobile project. Someone please help.

    That is a crossdomain issue because you have the site
    accessible via www or without.
    If you use
    http://www.sneeple.com/media_test/index.html
    to access that page it will work.
    Here's what to do to fix it:
    http://forums.flashgods.org/viewtopic.php?f=39&t=94

  • Azure SQL database working locally but not when published to Azure

    I have an
    AngularJS  solution that is connecting to a SQL Azure database.  When
    I run the solution locally, it’s configured to connect up to the SQL Azure database, the solution works fine. However,
    when I publish the solution to Azure the connection to the SQL Azure database does not work.
    When debugging with Chrome I get the error Failed to load resource: the server responded with a status of 500 (Internal Server
    Error) 
    I'm not using EF. but dapper.
    My connectionstring is as follows
    <add name="PortalConnection" providerName="System.Data.SqlClient" connectionString="Server=tcp:xxx.database.windows.net,1433;Database=xxx;User ID="xxx";Password="xxx";Trusted_Connection=False;Encrypt=True;Connection
    Timeout=30;"/>
    When I run the web solution locally from Visual Studio, my sql queries runs like it should, it's only the published version having problems. 
    Any ideas?
    Software Developer

    Hi,
    Thanks for answer.
    I had followed that step by step guide for deploying to Windows Azure. So that was not the problem.
    But I was able to get a better error message by turning off custom error in web.config.
    I got the error message: "Windows login are not supported in this version of SQL Server"
    I solved this by using the SqlConnectionStringBuilder instead of getting the connection string from 
    web.config.
    So everything works great now, just think it's strange it worked locally before..
    Regards
    -entery
    Software Developer

  • Found a fix for lightbox working locally but not on site!

    This was reply origionally but I felt I should post it. It seems to be a common problem and I was unable to find a resolution so here it is....
    I found a fix for something similar that occurred on my machine. I too was seeing no problems locally but when I posted it to my site, it just had the placeholder and no images....
    Apparently, dreamweaver is smarter than the browser... (maybe incorrect statement) however..... the file extensions are case sensitive!
    I had this-------- <A href="Img/CGM_1.JPG" border="0"  rel="lightbox[Img/CGM_1thumb.JPG]" title="CGM Pic Set"><img src="Img/CGM_1thumb.JPG" /></a>
    <a href="Img/CGM_2.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
                      <a href="Img/CGM_3.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
                      <a href="Img/CGM_4.jpg" rel="lightbox[Img/CGM_1thumb.JPG]"></a>
    Well, I didnt think anything was so bad, all of the colors were right I wasn't getting any warnings.... wtf?
    As it turns out, and this is only because I just started a new image set after testing an individual - - baby steps - - if you use the properties bar at the bottom of DW, it applies a different case for specific parts...... i.e. this is what it produced
    <A HREF="Img/CGM_1.jpg" border="0"  rel="lightbox[Img/CGM_1thumb.jpg]" title="CGM Pic Set"><img src="Img/CGM_1thumb.jpg" /></a>
                      <a HREF="Img/CGM_2.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
                      <a HREF="Img/CGM_3.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
                      <a HREF="Img/CGM_4.jpg" rel="lightbox[Img/CGM_1thumb.jpg]"></a>
    Notice the HREF's are now UPPER case and the jpg's are now lower case. !!!! really?!?!?
    Also, another thing to look out for is the folder/ in front of your thumbnail; make sure it is there. In my case I use my sam "Img" folder, not the "images" folder that lightbox creates.
    Hope this helps, I beat my head against the wall for a total of 10 hours over 2 days trying to figure this out. I couldn't find anything on the internet. I'm going to post this so others having this issue get it resolved. I found those, just no resolution.

    Thanks for your quick response
    I tried what you said and I still had no avail...
    There is a style.css file in the root directory but for some reason you cant access it...
    I checked the file permissions of style.css and they are: 644
    Its really wierd - I dont understand why it isnt reading...
    Also regarding {www.care.cc} all of my clients websites are under the same web hosting service, so he set the default "404 page not found" redirects to {www.care.cc} which is their "Main Site" as such - I understand that this is bad practice but unfortunatley I have no control over these matters as I have limited access too my clients web hosting.
    Thanks again for the Help

  • Hyperlink works locally but not on Intranet

    Hi,
    Very strange behavior since most of other hyperlinks in
    separate projects only work on the Intranet, but not locally. All
    setting for hyerlinks are the same since they were pulled from a
    template.
    Any ideas
    lisa

    Lisa,
    Your inability to get your Captivate files working properly
    from a local machine may be related to the Flash Player security
    restrictions issue:
    Link
    to Adobe Knowledge Base Article
    The article is a bit misleading as it implies that you only
    need to change your settings if your Captivate file is actively
    passing information to the Internet somehow, but I've found that I
    pretty much always run into the security issue when previewing
    files locally in the browser.
    Since I tend to help out on lots of other people's projects
    at work, it turns out it's easier for us as a group to simply
    publish directly to an Intranet server and preview from there via
    HTTP (i.e. navigating to the correct web server URL in a browser).
    This allows us to not only avoid the security issues, but ensures
    that we've copied all the necessary files to the server.
    For my own projects, I've also specified a common "published"
    folder on my local machine as "safe" in the Flash Player Settings
    Manager so I can quickly test my projects using the "View Output"
    button in Captivate's Publish dialog.
    This last tidbit is something that people often overlook.
    Unless you specify your publish location as "safe" in the Flash
    Player Settings Manager,
    any file you launch via the View Output button is considered
    "local" and subject to the tighter security restrictions associated
    with locally-accessed files.

  • Flash works locally, but not online!...

    I put a .SWF on a blank web page. It launches and plays fine
    locally if I launch the page from my hard drive, but online I just
    get a blank white page. Here's the link:
    http://al-i.anixter.com/TEMP/flashTemplate/index.html
    Any ideas?! Thanks!...

    Just realized if you right-click on the page and click
    "forward", it advances and works. I'd think it was something in the
    preloader code, but maybe not, because if the preloader was messed
    up, then I'd think it wouldn't work locally either, right?...
    UPDATED:
    Nevermind - figured it out! Stupid coding error in the
    preloader!!!

  • RSS Widget works locally but not on website

    I used the RSS widget to insert the following RSS feed:
    feed://www.bpkids.org/updates.xml
    I have also tried inserting with http:// instead of feed:// but no difference
    When I publish the site and check it on my local folder, it works. But when I post it to my website, it shows nothing.
    This is the first time I've used the RSS widget. It seems straight forward enought, however, I've read in these discussions that there was a bug with the RSS widget recently that was causing it not to work and wasn't sure if this is still a problem. Thanks

    That is a crossdomain issue because you have the site
    accessible via www or without.
    If you use
    http://www.sneeple.com/media_test/index.html
    to access that page it will work.
    Here's what to do to fix it:
    http://forums.flashgods.org/viewtopic.php?f=39&t=94

Maybe you are looking for

  • Any ideas for a VCR/DVD combi?

    I'm in the market for a dvd/vcr combo for my home office, and would like some recommendations. At the moment i'm using a 10 year old SHARP tv/vcr when I convert old VHS footage, so i think it's due for an upgrade. I've got a lot of tapes to convert,

  • Return file data

    ok, I want to create a sub-routine in a spearate class that when I call it opens up a file and returns the file data result in a string. so: string = file.GetFile("filename.txt"); And that gives me the data contained in a file in one string varaible.

  • Table containing approver id

    Hi All, I am using datasource"0BBP_TD_SC_APPR_1"(for shopping carts:approver).It contains a field"APPROVER_ID" which contains approver no.This field is Only for STAT_RELEASE u2018I1129u2019 and u2018I1016u2019 from CRMD_PARTNER according to the stand

  • To enable Axis adapter framework

    Hi All , We are going to use Axis adapter framework in AAR PI landscape(X6* track). As we understood, this is SAP provided by default with PI but there are some more additional JARs need to be installed to enable this functionality. Do we need downti

  • Search Form for object

    Using Adobe XI Pro, after scanning, can I search PDF for an object and save responsive files? I have thousands of PDF to search for an X in a certain box, along with other fields that may meet the search criteria.