Can the "mode" tag in vhost.xml file be edited using getconfig() and setconfig()?

can the "mode" tag in vhost.xml file be edited using getconfig() and setconfig()?

You can create client and have following code in it: (But before that Admin Server is running on the machine which you want make edge server programatically)
var admin_nc = new NetConnection();
sendCommand.enabled = false;   // where sendCommand is button on stage with "sendCommand" as instance name
admin_nc.onStatus = function(info) {
if (info.code == "NetConnection.Connect.Success")
sendCommand.enabled = true;
sendBtn.addEventListener("click", callAdminAPI);
function callAdminAPI() {
admin_nc.call("setConfig2",new Result1(),"Proxy/Mode","remote","Adaptor:_defaultRoot_/VHost:_defaultVHost_");
function Result1() {
      this.onResult = function(info) {
if (info.code == "NetConnection.Call.Success" ) {
admin_nc.call("startServer",new Result2(),"restart"); // you can might as well use restartVHost
function Result2(){
this.onResult = function(info) {
if (info.code == "NetConnection.Call.Success" ) {
trace("Server started successfully);
admin_nc.connect("rtmp://<your Edge Server IP>:1111/admin","admin","admin");  //here admin/admin is userid/password of Admin of server

Similar Messages

  • allow tag in Vhost.xml

    I want to allow connections between applications running on
    my server.
    When setting <allow> tag in Vhost.xml to '12.34.56.78'
    (server ip address, i don't have domain name), server allows
    connections made from swf files running on the same server, but
    does not allow connections from one application to another running
    on the server.
    Adding 'localhost' to <allow> tag does not help.
    Leaving <allow> tag empty does not help also.
    When setting <allow> tag to 'all', all connections are
    allowed including those made from third-party servers that is not
    applicible for security reasons.
    What am i doing wrong?

    Here it is an excerpt of the file.
    The <Allow> tag is the only thing i've modified :
    <!-- This tag specifies a comma delimited list of domains that are   -->
    <!-- allowed to connect to this vhost. If this tag is empty, then    -->
    <!-- only connections from the same domain that is being connected   -->
    <!-- to will be allowed. If this tag is not empty, then only the     -->
    <!-- domains explicitly listed will be accepted. For example,        -->
    <!-- <Allow>macromedia.com, yourcompany.com</Allow> will only allow  -->
    <!-- connections from the macromedia.com & yourcompany.com domains.  -->
    <!-- If you wish to allow localhost connections, you will specify    -->
    <!-- "localhost". For example, <Allow>localhost</Allow>. To allow    -->
    <!-- all domains, specify "all".  For example, <Allow>all</Allow>.   -->
    <Allow>www.mywiicenter.com</Allow>
    I have a page, on the site specified in <Allow>, with an SWF that shows a video on demand, taken from the "media" subfolder of the VOD application.
    The FMS is in a different server.
    When there it was "all" in place of my site, the connection were established, and i watched the video.
    Now, the swf can't connect from either my site nor from any other one (i've also tried putting the swf on a different webserver with another domain name).
    The FMS administration console tells me that a connection was attempted, but it was refused (see image below):
    And i've tried both with IE7 and Opera 9.
    I think there's a simpler way than rewriting the VOD application , isn't it?

  • Windows Phone 8 Can't Update listbox item in XML file after using hardware back button?

    Hi All i have a list box and i am saving list box selected item in XML file thats working fine but the problem is that when i will close my app and reopen and add more value to list box my previous value is removed form the xml file and listbox also how
    i can save my current added value and previous value in xml file i am using following code :
    and iam using following code
    <Grid x:Name="ContentPanel" Grid.Row="2" Margin="15,10,15,0">
    <ListBox Name="list_location" Tap="list_location_Tap" Foreground="Black">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <TextBlock x:Name="item_name" Text="{Binding description, Mode=OneWay}" Padding="5,15,5,15" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}"/>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    <ListBox Name="list_locationAdd" Background="Red" Foreground="Black" Visibility="Collapsed">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <TextBlock x:Name="item_name" Text="{Binding description, Mode=OneWay}" Padding="5,15,5,15" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}"/>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    </Grid>
    and my back end code is follow:
    XmlWriterSettings x_W_Settings = new XmlWriterSettings();
    x_W_Settings.Indent = true;
    using (IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication())
    using (IsolatedStorageFileStream stream = ISF.OpenFile(filename, FileMode.Create))
    XmlSerializer serializer = new XmlSerializer(typeof(ObservableCollection<Prediction>));
    using (XmlWriter xmlWriter = XmlWriter.Create(stream, x_W_Settings))
    data.Add(new Prediction() { description = App.professionalId });
    list_locationAdd.ItemsSource = data;
    serializer.Serialize(xmlWriter, data);
    protected override void OnNavigatedTo(NavigationEventArgs e)
    try
    if (list_locationAdd != null)
    using (IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication())
    using (IsolatedStorageFileStream str = ISF.OpenFile(filename, FileMode.Open))
    XmlSerializer serializer = new XmlSerializer(typeof(ObservableCollection<Prediction>));
    ObservableCollection<Prediction> data = (ObservableCollection<Prediction>)serializer.Deserialize(str);
    if (list_locationAdd != null)
    this.list_locationAdd.ItemsSource = data;
    list_locationAdd.Visibility = Visibility.Visible;
    catch (Exception ex)

    Can you provide a working sample?  Upload to Onedrive and share it with us.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to quick import Tags from a xml file?

    Good morning/afternoon/night everyone.
       I have this client that want me to import something like 1000 tags from a xml file in CQ5.5. I know I can do it programatically and in dev.day.com I have already found some instructions, but, there is some easier way to do this? Or, if the only way is developing a bundle to run in a workflow (and then the client can import tags from xml files anytime he want to), do you guys have some advice or guidelines?
    Thanks!

    I would expect it should be possible using vault. If you export an existing namespace from cq using vault (checkout/update) you can see what format it should be in. Then you should convert your xml to match that format (perhaps using XSLT) and use vault in the other direction (commit).
    We are using vault all the time behind the scenes using a vault plugin for maven. This way we can export content from one developer's cq instance, put it in SVN and have another developer import it in his cq instance, all using maven (and vault). This is especially usefull for general content structures and for tags.

  • Is the java tag in application.xml recognizable.

     

    Hi
    This was a bug in 7.0 it has been fixed in 7.0 sp1
    Ajay
    "Vasudha" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am using Weblogic Server 7.0
    Vasudha.
    "Ajay" <[email protected]> wrote:
    Hi what version of the Server are you using?
    Ajay
    "Vasudha Upadhyaya" <[email protected]> wrote in message
    news:[email protected]..
    Is the <java> tag in application.xml recognizable.
    I have a EAR with a couple of EJB's and a JAR file(Java Client
    classes).If
    I package
    the JAR(Java Client classes) file and specify it as <java> tag in theapplication.xml
    the EAR file cannot be deployed.
    If I remove the JAR(Java Client classes) from the EAR and the <java>tag
    from
    the application.xml then the EAR file is deployed(EAR has only EJB's).
    Can anyone help me on this.
    Thanks,
    Vasudha.

  • How can I generate IDOC(WPUUMS) from XML file in POSDM or in SAP Retail

    Hallo Retail expert,
                                I have following scenario,
    I have Retail Store who send me their daily sales report through Wincor Nixdorf Point of sale. There i am using standard POSLOG2 to SEEBURGER(its a middleware which act as Converter) xml format and then i post that data first in POSDM and then with BAPI i transfer or book that data to SAP Retail.
    Above is the one scenario which is working.
    This is the Second scenario.......
    I have some external Retail store, they dont have Wincor Nixdorf POS, so they send me their Sales Report through SEEBURGER(its a middle Hardware which act as Converter) and SEEBURGER Convert that Sales data to XML format. My question is....
    How can i upload or Convert a XML File into IDOC (WPUUMS)in SAP or in POSDM?
    any new suggestion are welcome.
    Thank you all in advance.
    regards,
    Niel

    Hi,
    1. To get the required XML Schema, use transaction code WE60 to go to the IDoc documentation -> enter the IDoc type you want to use (WPUUMS01). Flag control and data record. Then display the XSD by choosing Documentation -> XML Schema from the menue bar. Now you can donwload the XSD for usage in Seeburger.
    2. Create your mapping from the POS format into the IDoc XML format in Seeburger.
    3. Create an XML File Port in ERP or POS DM using transaction code WE21.
    3. To inbound the XML file from Seeburger into POS DM or SAP Retail Seeburger should trigger the function module EDI_DATA_INCOMING. Parameters for this FM are the Pathname to the XML file and the Portname you just created. Based on the port name the FM can derive the port type xml and the data will be handled as XML data.
    Regards Carsten

  • CDATA section in a tag of an XML file

    Hi SDNers:
    I have an issue with using the method CREATE_CDATA_SECTION of Interface IF_IXML_DOCUMENT.
    I have created an XML file from ABAP using methods in IF_IXML_DOCUMENT etc.
    The XML file is perfectly alright. But now there's a need to add CDATA section.
    I need the CDATA section as follows in XML file...
    <CustomField>
        <![CDATA[
              First Line of Text
              Second line of Text
              Third Line of Text
          ]]>
    </CustomField>
    but don't know how to program this. Can anybody help/advice me on this?
    Looking forward to your optimum response(s).
    Best Regards

    Hi SDNers:
    I have an issue with using the method CREATE_CDATA_SECTION of Interface IF_IXML_DOCUMENT.
    I have created an XML file from ABAP using methods in IF_IXML_DOCUMENT etc.
    The XML file is perfectly alright. But now there's a need to add CDATA section.
    I need the CDATA section as follows in XML file...
    <CustomField>
        <![CDATA[
              First Line of Text
              Second line of Text
              Third Line of Text
          ]]>
    </CustomField>
    but don't know how to program this. Can anybody help/advice me on this?
    Looking forward to your optimum response(s).
    Best Regards

  • How to append the declaration tags to generated xml using Xquery

    Hi,
      How to append the declaration tags to generated xml using Xquery.generated XML is like
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Here I want to append the <?xml version="1.0" encoding="ISO-8859-1"?> and the result xml should be
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Can anybody help to do this.
    Thanks
    Mani

    First assign this element to a temp variable
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Now in XQuery expression create a new variable
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $temp

  • Creating the DTD tag in an XML Documento

    I am using the Xalan XLST Transformer to generate XML documents.
    I want to include a DTD tag in each XML file and in my programs I create it using the following code:
    DocumentType dt = documento.getImplementation().createDocumentType(nombreDTD, nombreDTD, nombreArchivo);
    documento.appendChild(dt);
    ..The variable documento is the root element of the document, nombreDTD is the name identifying the root element tag, nombreArchivo is the name of the DTD file I want to reference.
    However when the XML output is generated, the DTD tag is always missing.
    Do anybody have any idea what might be causing this?
    Thanks,
    Color

    XSLT has its own method of putting the DTD information in the XML it creates. Include an xsl:output element in your XSL transformation like this:
    <xsl:output doctype-public="..." doctype-system="..." />

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • What the best way to create XML files from JAVA application?

    Hi to all,
    I need to edit and to create new filex in format of xml. I know to parse, but what would be the best way to do:
    1. - Create new file, create like simle text file, or there is some clases that know to do it in more simple way
    2.a - Edit XML file, to take some data and add it to the XML in the place I want to.
    2.b - Also Edit, but not to add fields, just update some of them.
    Code examples or links to samples woul be welcomed.
    Best regards, Nick.

    I have tried working with XML directly using the Java classes but this was a pain. I then looked at DOM4J and JDOM and found JDOM easier to use.

  • I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restore bcause there are files that are used by other application. I am having Widows

    I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restored bcause there are files that are used by other application. My iPOD appears in My Computer in drive H as a mass storage generick volume

    Try disabilng the Enable Disk Use option from under the iPod's Summary tab, applying the changes, and seeing if that helps.
    Otherwise, temporarily disabling any antivirus, security, firewall, or file indexing software that may be running on your system and then try restoring your iPod again.
    B-rock

  • [svn] 3025: Add libs/player/ 10 directory to the library path in the team apps flex-config.xml file.

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

  • [svn:fx-trunk] 13358: Manually removing extraneous whitespace from the start of the en_US playerglobal rb DITA XML files to unblock the build .

    Revision: 13358
    Revision: 13358
    Author:   [email protected]
    Date:     2010-01-07 17:10:34 -0800 (Thu, 07 Jan 2010)
    Log Message:
    Manually removing extraneous whitespace from the start of the en_US playerglobal rb DITA XML files to unblock the build. We need to work with the doc team to make sure future drops do not contain this whitespace.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-24896 - playerglobal_rb.swc has dita content that is not encoded correctly
    Reviewer: For Jim, Jeff
    Tests run: ant other.locales
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24896
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/__Global__.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/authoring.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.accessibility.xm l
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.data.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.desktop.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.display.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.errors.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.external.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filesystem.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filters.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.geom.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.html.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.media.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.drm.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.printing.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.profiler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.sampler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.security.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.system.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.engine.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.ui.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.utils.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.xml.xml

    Thats good news.

  • Application to Read and Write the Configuration Data from a xml file

    Hi,
    I have to develop a Webdynpro application that will do the following:
    Read the Configuration data from an xml file
    If stored in a file , and the file is not found, prompt the user to provide the file location.
    Pre-Populate the screen(table) with the configuration data
    Allow the user to edit the data
    Store the configuration data when the user hits the Save button
    The config xml file details are as follows:
    Regardless of the location of the configuration data, the following fields will be stored
    Application (string) will always contain u201CSFA_EDOCSu201D
    Key (string) eg LDAP_USER, DB_PREFIX, etc.
    Type (character)  u201CPu201D = Plain Text, u201CEu201D = Encrypted
    Value (string)
    Since I am new to WD, I would require help on this.
    Please help.Its Urgent.
    Regards,
    Vaishali.
    Edited by: vaishali dhayalan on Sep 19, 2008 8:29 AM

    Hi,
    I have to develop a Webdynpro application that will do the following:
    Read the Configuration data from an xml file
    If stored in a file , and the file is not found, prompt the user to provide the file location.
    Pre-Populate the screen(table) with the configuration data
    Allow the user to edit the data
    Store the configuration data when the user hits the Save button
    The config xml file details are as follows:
    Regardless of the location of the configuration data, the following fields will be stored
    Application (string) will always contain u201CSFA_EDOCSu201D
    Key (string) eg LDAP_USER, DB_PREFIX, etc.
    Type (character)  u201CPu201D = Plain Text, u201CEu201D = Encrypted
    Value (string)
    Since I am new to WD, I would require help on this.
    Please help.Its Urgent.
    Regards,
    Vaishali.
    Edited by: vaishali dhayalan on Sep 19, 2008 8:29 AM

Maybe you are looking for

  • How to use "Insert action"

    Hi, experts:   I am facing one problem.   I try to use system action "insert action" to insert a new row into table view from a form view,   I have assign "To" to the target table in the Insert action properties.   When test program, table view did a

  • TA22875 Why can't I drag MP4 Files into Imovie?

    I'm trying to frag MP4 files into I Movie and when I release the mouse it just returns them to where they came.

  • Beginner's question - where is the form?

    Hi I've just installed Visual Studio Express 2013 (success on the third try).  It now runs and I have created a project BUT I cannot see the Windows form upon which to place my controls etc. The application is developed using the project wizard, C++,

  • Eprint does not work with 5510 D

    I have tried several email addresses to associate with my 5510 D  but the e-print feature does not work with any of them

  • Runtime systems

    Hi, What are the various runtime systems available in NWDI ? Thanks, Teja