Remote URLS

I'm trying to use a remote URL for a datasource. The docs
say:
The URL you decide to use (whether absolute or relative) is
subject to the browser’s security model, which means that you
can only load data from an XML source that is on the same server
domain as the HTML page you’re linking from. You can get
around this limitation by providing a cross-domain service script.
For more information, consult your server administrator.
I've heard of crossdomain files for Flash, but what exactly
is meant here? For example, the RSS reader demo does everything
locally, but a "real" RSS reader wouldn't do that. So how would it
work?

Hi Ray,
The real RSS Reader uses CF or PHP to pull in all the feeds.
We provided all the dummy XML files so the demo would work straight
from the zip.
Check feeds.cfm and feeds.php in the rssreader/data folder.
It gets the feeds from LiveFeeds.XML.
Thanks,
Don

Similar Messages

  • How do I place a remote url in the table of contents?

    Hi,
    We were recently customizing icons for our WebHelp output, and in doing so discovered the option to customize an icon for Remote URL. It can be found by navigating to the Skin Editor:
    WebHelp Skin Editor/Navigation/Remote URL
    Changing the icon was easy. But I can't figure out how you place such a remote URL so that it appears in the book hierarchy and table of contents? I tried placing it in the HTML Files in the Project Manager pod, but don't see any option to accomplish it that way.
    Coudl anyone please share how this is accomplished?
    Thanks in advance,
    Douglas

    If you open the TOC pod, there should be a button for adding a new TOC page. In the dialog box that displays, you should be able to set a URL rather than a project topic.
    HTH,
    Amber

  • Remote URL with parameters

    I'm building a ADF Mobile application and would like to call remote URL with parameters however there is no concrete example of this in the developer guide. I would like to call www.google.com?q=queryParam where queryParam is an user input.
    Thank you...

    I think you need to first define a white list of sites and this will allow opening the page in the web view instead of a separate browser see:
    http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/remoteurl.htm#BABJFEAE

  • How to configure the combobox while using connecting throught the remote URL.

    I am using the combobox in the server for the selection of process stages and is working fine.
    Now I want to connect the combobox through the remote URL connection of my client system. So that it will be updated simultaneously in client and server.
    While connecting through the remote URL it is giving the message the to enter the value property.
    I am not able to understand what value is to be entered in this option.
    Please advise the solution at the earliest.
    Best Regards,
    Naresh Saini

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Remote URL iView

    Hi,
    I tried to export data from a table view, which is filled by a query, into a excel file. Everything works fine, except the excel file is empty.
    I have done everything like described in:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123</a>
    I`m quite sure, that the BW system and the VC are on different server. The document above says, that I then need a remote url iView.
    How do I create that?
    The BW system is marked as master and with system alias sap_bw as suggested in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/exporting%2bdata%2bfrom%2bvc">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/exporting%2bdata%2bfrom%2bvc</a>
    Has anyone an idea who I can export the Data?
    Regards,
    Matthias

    Hi Miriam,
       Just find out the URL of your Web Application created thru EAR deployment. (like when you do a test run of the ear in the browser.) Copy that URL and go to the Portal Content Administration area. Click on any folder and right click and say 'New iView'.
      Then select URL iView and give the URL copied above. thats it.
    Hope this helps.
    Vishal

  • [AIR/Desktop] StageWebView doesnt load remote URLs when rendermode is direct

    Hey there,
    Im porting an CS6-AIR-App from IOS to Desktop, in the IOS-App, i use rendermode GPU, everything works fine.
    In the Desktop-App im using renderMode "direct" (no GPU mode selectable in CS6).
    Some strange behavior came up.
    If rendermode is "auto" (or cpu), StageWebView loads local and remote html, but the App is slow, not an option.
    If rendermode is "direct", StageWebView loads local, but not remote html, though the App is fast now.
    My Fallback is to use HTMLLoader and it works with both rendermodes for both local/remote urls.
    Question: is there any drawback using HTMLLoader instead of StageWebView (e.g missing hardware accelaration)?
    Anyway, It would be nice to know whats going on and why StageWebView doesnt work.
    Using: captive/included runtime Air 3.5+3.6, Flash CS6, OSX 10.7.5.
    thanks,
    V.

    I'm also having problems with StageWebView:
    - Only in Desktop (iOS and Android work fine)
    - Only with AIR 3.6 and 3.7 beta (older versions such as 3.5 work fine)
    - But in my case it happens BOTH with Direct mode and CPU mode
    In my case, the page is just shown black, no content, and no events are fired. That's why I filed this bug:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3514201
    I've also tried to use the ASC 1.0 version or AIR 3.6 and the problem persists, so it's not a problem with the new compiler, but with AIR 3.6 itself.
    Please, vote the above bug report, to try to get this fixed!

  • Problem creating an image from a remote url

    I am creating a servlet which does the following:
    1. retrieves an image from a remote url
    2. resizes the image
    3. sends the image to the client.
    The servlet works fine when I run it on my PC, but when I run it on the server, it doesn't. Here's the problematic code
        private Image getRemoteImage(String imageUrl) throws Exception {
            System.err.println("in getRemoteImage()");
            if (!imageUrl.startsWith("http://")) imageUrl = "http://" + imageUrl;
            URL u = new URL(imageUrl);
            System.err.println("imageUrl: " + imageUrl);
            HttpURLConnection huc = (HttpURLConnection) u.openConnection();
            huc.setRequestMethod("GET");
            System.err.println("connecting...");
            huc.connect();
            System.err.println("Getting DataInputStream...");
            DataInputStream in = new DataInputStream(u.openStream());
            //DataInputStream in = new DataInputStream(huc.getInputStream());
            System.err.println("...got");
            int numBytes = huc.getContentLength(); //1063
            System.err.println("numBytes: " + numBytes);
            byte[] imageBytes = new byte[numBytes];
            System.err.println("reading fully...");
            in.readFully(imageBytes);
            System.err.println("...read");
            in.close();
            System.err.println("creating imageIcon");
            ImageIcon imageIcon = new ImageIcon(imageBytes);  //   <-- problem here
            System.err.println("** THIS LINE IS NOT REACHED **");
            System.err.println("creating image");
            Image image = imageIcon.getImage();
            System.err.println("returning image");
            return image;
        }When I access the servlet with FF, the browser reports:
    The image �<my servlet url>� cannot be displayed, because it contains errors.
    When I access the servlet with IE, I get:
    Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.Toolkit$2.run(Toolkit.java:748)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
         at javax.swing.ImageIcon.(ImageIcon.java:205)
         at myservlets.GetImage.getRemoteImage(GetImage.java:283)
         at myservlets.GetImage.processRequest(GetImage.java:73)
         at myservlets.GetImage.doGet(GetImage.java:394)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
         at java.lang.Thread.run(Thread.java:534)
    Any ideas?
    Cheers,
    James

    Cheers rebol.
    I've tried that (along with all other kinds of techniques I never knew existed). I think it might be a problem with the Tomcat setup - it may need to run headless (sounds a bit severe!...).

  • Play mp3 from remote url

    Hi Everyone,
    I am Completely new to Flash and Flash based development. I
    require some help in creating a flash document.
    I need to connect to a remote URL file and play the audio, it
    is an MP3 file. I have tried some methods but as i am starting from
    scratch i do not have any idea and I am stuck.
    Basically, i want a simple label like "play" to appear and
    when clicked on it connect to a URL specified (probably using
    Action script) and play the MP3 file.
    I have tried searching the forums and Internet before asking
    this question but I did not get any accurate answer.
    Kindly respond to this query if anyone has the answer.I
    require this very urgently.
    Thank you for the support.

    You could do something as plain and simple as putting a place
    holder movie
    clip on the stage and give it an instance name of
    placeholder.
    Then for your button:
    myBtn.onRelease = function(){
    placeholder.loadMovie("myURLtoMP3.mp3")
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    ***Stop Piracy
    http://www.adobe.com/aboutadobe/antipiracy/***
    "LeifKolt" <[email protected]> wrote in
    message
    news:f5ukov$cij$[email protected]..
    > Hello,
    >
    > Can anyone give me the ActionScript to solve this
    problem.
    >
    > I have a button, when this button is clicked I want it
    to play an MP3 from
    > a
    > URL somewhere on the web. In this case
    > "
    http://www.leifkolt.com/WeAreAllTerrorists.mp3"
    >
    > I am trying to build my own player within my website
    (entirely built in
    > flash)
    > and don't want to mess with the hassle of a scripting a
    playlist etc... I
    > just
    > want to have the song names as buttons, and when you
    click the button it
    > plays
    > the desired MP3 off of my web server.
    >
    > Any help is greatly appreciated. THANKS!
    >
    > LEIF(kolt)
    >

  • RH5 JavaHelp Remote URL to Web Form

    I was wondering if anyone has encountered this issue.
    In order to get around the JavaHelp limitations with forms, we have been linking via a remote URL to a web form (created in FrontPage) to collect feedback through email. The form is no longer working in JavaHelp. The page loads in the JavaHelp window, but it never goes anywhere. When you click submit, the form resets and nothing is received in email. The form works fine when linked on the web or in WebHelp.
    I've tried a removing the link and reinserting, changing the recipient, the confirmation page, but no luck. Any suggestions? Other than switching to something other than JavaHelp -- 'fraid I've got no control over that decision

    Hi there
    I suppose JavaHelp is incapable of opening just a plain ole Web Page in a new window? That sounds like all you really need to achieve here.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Remote URLs for See Also Keyword Topics

    I am having difficulty entering a remote URL as a topic
    destination for a See Also Keyword. With the appropriate See Also
    Keyword selected, I click the New Keyword Topic icon. One of the
    available dropdown options for the Keyword Topic Destination is
    "Remote URLs." However, when that is selected, the "Link To" field
    at the bottom of the form is unavailable.
    I also used the Find Topic feature to attempt a search for
    topics in a separate help project, and the only returns provided by
    RoboHelp were for topics that existed in the currently open
    project.
    Is there some setup option or something I'm missing?

    Welcome to our community, S_Reynolds
    One option you would have at your beckon call would be to
    create simple redirect topics that point to the remote URLs. Then
    link those to the See Also keywords.
    Cheers... Rick

  • [ADF Mobile] remote url feature

    I have several questions from a customer regarding ADF mobile capabilities. They have already developed an ADF application and are looking at reusing that in an ADF Mobile application.
    1. How can I access phone features from inside a Remote URL feature? Do I need to add the phonegap javascript libraries and code to the remote app or do I need to do smth on my mobile app?
    2. Can I access content exposed by the page in the remote URL feature? For instance, let's say that on my remote app I have a list of POIs that I want to display on a map in my mobile app. Can I achieve that with remote url + an additional feature(to show the map) or should I use web services +amx pages?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi ,
    i want to tell my knowledge that i know about your questions.
    1) You cant access native features from remote url.
    2) You can only reach native features by using mobile app. ADF mobile can do this as you know.
    3) Phonegap is using on mobile platforms.
    4) You cant access content exposed by the page in the remote URL feature but u can use content via calling webservices from your mobile app.
    Fuat OZERGIL
    Edited by: FuatOZERGIL on 06.Ara.2012 08:14

  • ParentSandboxBridge with remote URL.

    Hi all,
    I was reading up on the security sandboxing model in AIR here and I was wondering whether the following was possible.
    1. I have a HTML based Ajax application which needs to open up a URL on a remote server. For the sake of argument, lets say this is http://www.eye.fi/auth.php.
    2. http://www.eye.fi/auth.php has a JavaScript function defined called returnToApp which is invoked when the user interacts with http://www.eye.fi/auth.php
    3. When returnToApp is invoked, I need to execute functionality in my AIR app. So, I basically need to set some kind of listener in my AIR app which listens for the returnToApp in auth.php to be invoked.
    In my AIR application, I'm opening up http://www.eye.fi/auth.php using the air.HTMLLoader.createRootWindow method, but the examples in the security sandboxing documentation usually have the 'parentSandboxBridge' attached to an iframe. I guess I have a couple of questions:
    1. Is it possible to attach a bridge between an AIR application and a remote URL?
    2. If so, is it possible to listen for a particular method in the remote page to get invoked and pass information from the remote page back to the AIR application.
    If this is not possible, or you'd suggest me take a different route, I'd be very interested to hear your opinions.
    Cheers
    Sean

    Yes, the sandbox bridge mechanism lets JavaScript from a page in a non-application sandbox (e.g., from a remote URL) communicate with JavaScript in the parent page that is in the application (AIR) sandbox. The parent page can also reference a function in the remote page (via the sandbox bridge).
    Here's a little "quick start" tutorial describing how to use a sandbox bridge in an HTML-based AIR application:
    http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html
    Sandbox bridging sets up communication between the parent page (in the AIR application sadbox) and a child iframe or frame. To do this usingHTMLLoader.createRootWindow, load an HTML page from the application sandbox (an HTML file installed with your applicaiton) as the content of the created window. This page should use an iframe or frame to load the remote content, and it should define functions to be exposed via the sandbox bridge.

  • Error when retrieving data from remote url

    Hello,
    I'm trying to do something that should be very simple --
    letting a user enter something in a textbox, then using that data
    as a script parameter when calling a remote cgi script, and
    returning the results to the screen.
    The remote cgi is sending data in plain text. I have looked
    at several examples, and I've tried using an XMLHttpRequest, I've
    tried using the servicemonitor.swf methods, and I've tried with
    URLRequest and URLLoader methods. All fail in one way or another.
    Here's the code for the URLRequest/URLLoader method...
    function fetchISSN(myform) {
    air.trace("Starting Fetch");
    var mytitle = myform.title.value;
    air.trace("TITLE: " + mytitle);
    var reqURL = "
    http://grlinker.coalliance.org/grbin/ilu_rmt.cgi";
    air.trace("URL: " + reqURL);
    var variables = new air.URLVariables("title=" + mytitle +
    "&isf=plain");
    air.trace("URLPARMS: " + variables);
    // var element = document.getElementById('results');
    var request = new air.URLRequest(reqURL);
    air.trace("Request Object Created");
    request.data = variables;
    air.trace("Data Added to request");
    request.method = air.URLRequestMethod.POST;
    var loader = new air.URLLoader();
    air.trace("Loader Object Created");
    loader.addEventListener(air.Event.COMPLETE, loadComplete);
    loader.addEventListener(air.Event.OPEN, loadOpen);
    try {
    loader.load(request);
    } catch(e) {
    alert('Could NOT load data: ' + e);
    } // end of function fetchISSN
    function loadComplete(event) {
    // alert('Downloaded ' + loader.bytesTotal);
    alert('Complete');
    // element.innerText = loader.data;
    } // end of function loadComplete()
    function loadOpen(event) {
    alert('Downloading');
    } // end of function loadComplete()
    And the HTML that calls it...
    <table width="280" border="1" align="center">
    <tr><td align="center">
    <font size="2">Enter a title and click
    submit.</font>
    <form name="issn">
    <input type="text" name="title" /><br>
    <input type="submit" name="submit" value="Submit"
    onClick="javascript:fetchISSN(this.form)" />
    </form>
    </td></tr>
    </table>
    Things go fine until it hits the loadComplete function. At
    that point, the following error is generated...
    Error: The application attempted to reference a JavaScript
    object in an HTML page that is no longer loaded.
    at __HTMLScriptFunction/throwJSObjectDead()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    Can anyone give me any advice or even a reason for this
    failure. I did find a bug about this in the bugtracker, it says it
    is resolved with an "external" resolution. I'm not sure what that
    means. Is there a patch I'm missing? Am I doing something really
    stupid?
    Just for reference, I'm on a Mac running OS X 10.5.6, using
    the SDK for development.
    Thanks!
    Scott

    Hi,
    Can you try putting the declaration of the URLLoader instance
    outside your fetchISSN function and see?
    That is:
    var loader;
    function fetchISSN(myform) {
    //your code above this line
    loader = new URLLoader();
    //rest of your code

  • Using powershell to deploy provider-hosted app and specify remote Url instead of using appinv.aspx page

    Hello all,
    Could you possibly help me with provider-hosted app development/deployment process.
    We developed SharePoint provider-hosted app that works just fine in development environment. Now we need to automate it's installation in test environment via powershell.
    In AppManifest.xml that we are deploying we have key instead of explicit URL:
    <App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="ShowAllRoomsApp" ProductID="{922a18aa-5592-b59a-4da9-4791baef02e7}" Version="1.0.0.0"
    SharePointMinVersion="15.0.0.0">
      <Properties>
        <Title>SomeTitle</Title>
        <StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
    If we use as
    https://technet.microsoft.com/en-us/library/jj655398.aspx recommends, we cannot specify Redirect Url as we can do this on
    /_layouts/appinv.aspx
    So now it seems like the only way to deploy this kind of solution is using appinv.aspx page.Or must we apply this URL in AppManifest on developing stage in Visual Studio?
    What did I miss?
    P. S. Even if I use /_layouts/appinv.aspx after powershell commandlets, I get error.

    hi,
    to deploy provider hosted app you need 2 things
    1. Client ID
    2. Redirect URL.
    What you can do you can generate app from visual studio using clientID and URL from developer enviornment.
    Now a app file is just a simple compressed zip file if you rename it as .zip and extract you will find AppManifest
    inside it. So to create an app for Testing enviornment what you have to to Get the CLient ID (from AppRegNew.aspx) in testing enviornment. Unzip .App file change the AppManifest with testing client ID and URL than again zip file and rename as .app.
    Now if you upload this file it will work.
    To automate this scenerio i have created a simple windows Application in which i Pass the Client ID and StartURl and an App File it unzips the app file make changes to app and again zip it.
    public static class AppPackageHelper
    public const string StartUrlExpression = "{0}?{1}";
    public const string StandardToken = "{StandardTokens}";
    public static string Publish(string appPath, string ClientId,string StartUrl)
    string tempDir = string.Empty;
    string outPutFile = string.Empty;
    try
    string parentDir = System.IO.Path.GetDirectoryName(appPath);
    outPutFile = System.IO.Path.Combine(parentDir, ClientId + "-Winshuttle.app");
    tempDir = System.IO.Path.Combine(parentDir, ClientId.ToString());
    Directory.CreateDirectory(tempDir);
    int lastInd = appPath.LastIndexOf('.');
    string tempPath = string.Empty;
    string targetFilePath = string.Empty;
    string cabPath = System.IO.Path.Combine(tempDir, System.IO.Path.GetFileNameWithoutExtension(appPath) + ".cab");
    FileInfo fInfo = new FileInfo(appPath) { IsReadOnly = false };
    File.Copy(appPath, cabPath);
    XDocument doc = null;
    string appManifest = string.Empty;
    using (ZipArchive zipArch = ZipFile.Open(cabPath, ZipArchiveMode.Update))
    appManifest = string.Format(@"{0}\AppManifest.xml", Directory.GetParent(cabPath).FullName);
    ZipArchiveEntry manifestEntry = zipArch.Entries.LastOrDefault(e => e.Name.ToLower() == "appmanifest.xml");
    manifestEntry.ExtractToFile(appManifest);
    doc = XDocument.Load(appManifest);
    XNamespace ns = doc.Root.GetDefaultNamespace();
    string defaultUrl = string.Format(StartUrlExpression, StartUrl.TrimEnd('/'), StandardToken);
    doc.Descendants(XName.Get("StartPage", ns.NamespaceName)).First().Value = defaultUrl;
    doc.Descendants(XName.Get("RemoteWebApplication", ns.NamespaceName)).First().Attribute(XName.Get("ClientId")).Value = setupInfo.ClientId.ToString();
    doc.Save(appManifest);
    if (manifestEntry != null)
    manifestEntry.Delete();
    zipArch.CreateEntryFromFile(appManifest, "AppManifest.xml");
    int totEnt = zipArch.Entries.Count;
    for (int e = 0; e < totEnt; e++)
    if (zipArch.Entries[e].Open().Length == 0)
    //if (zipArch.Entries.Count > totEnt && e >= totEnt) break;
    //zipArch.CreateEntry(zipArch.Entries[e].FullName);
    File.Delete(appManifest);
    if (File.Exists(outPutFile))
    File.Delete(outPutFile);
    File.Move(cabPath, outPutFile);
    return outPutFile;
    catch
    throw;
    finally
    if (System.IO.Directory.Exists(tempDir))
    System.IO.Directory.Delete(tempDir, true);
    return outPutFile;
    using System.IO.Compression.FileSystem.dll.
    Also if you want to do it using powershell You need to do the same thing unzip-> changes values-> zip
    So basic thing is You need to ahve only valid AppManifest file which contains 2 valid values Client Id and StartUrl
    if you changes it inside appmanifest manuall than it will also work. Using above code you can create a console Application to do it. You can use powershell it just that i dont know how to zip unzip in powershell but i am pretty sure you can easily find it
    on searching.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Remote URL is not working from html embedded as3 code

    Hello,
    i am working on a flash currency converter application, for that purpose i am fetching the latest currency rates from yahoo,
    i am using flash cs5 and as3, i am getting the desired response from yahoo when i run the flash file from Flash cs5 (ctrl+enter) and also after publishing (F12) by opening the html file just created by flash cs5.
    BUT
    when i am moving the html and swf file over a web server (WAMP in my case), the response from yahoo is no longer working for me, i have checked it in both localhost, and on remote server.
    what can be the issue? it seems so strange to me..
    any positive and quick response in this regard will be highly appreciated.
    Kind Regards
    maani...

    My Try was:
    i create a crossdomain.xml file which looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
       <site-control permitted-cross-domain-policies="all"/>
       <allow-access-from domain="*" secure="false"/>
       <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
    </cross-domain-policy>
    and in action script i write:
    import flash.system.Security
    Security.loadPolicyFile("crossdomain.xml");
    Did i missed anything?

Maybe you are looking for

  • NFe - Obrigatoriedade da chave de acesso nas NFs de entrada.

    Olá Verificando no Site do SPED temos a nova alteração abaixo para Janeiro/2012 http://www1.receita.fazenda.gov.br/noticias/2011/setembro/noticia-23092011.htm "Disponibilizada a versão 2.0.6 do Guia Prático da EFD (Art. 1º do Ato COTEPE ICMS 41/11).

  • Firefighter Validity Date Expiration Notice

    All,   Is it possible for firefighters to receive (other than manually) automatically an expiration notice of their firefighter access once the validity date nears or ends? Greg

  • Irssi not working - Perl module?

    intimidat0r@phork ~ $ irssi Can't locate Symbol.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_per

  • Exactfit param in markup ignored by FireFox

    Hi, Iwas struggling to resize a small movie in the header of my page, so decided to use the exactfit param: <param name="scale" value="Exactfit" /> works a treat in IE, however in Firefox it is 'ignored' and does not fit. Any workaround ?

  • Trouble with transfer of music to 80gig ipod,

    For christmas my dad got a new 80 gig, black ipod, but were having trouble with transferring his huge library from his powerbook G4 to his ipod. It transfers about 300-400 songs then stops. We tried the "5 R's" and still are unsuccessful. He keeps ge