WebDeployPackage: Parameters.xml file

I use the following command to create the web deploy package:
msdeploy -verb:sync -source:metakey="Default Website" -dest:package=D:\WT\test2.zip > msdeployarchive.log
But this doesn't create a parameters.xml file!!! Can someone tell me how to create Web Deploy package using msdeploy command and it should contain parameters.xml file.

I think you are supposed to provide the parameters.xml file yourself.
http://msdn.microsoft.com/en-us/library/ff398068(v=vs.110).aspx
To use deployment parameters for Web.config file settings
1.Create an empty text file, name it parameters.xml, and save it in the project folder (the same folder that contains your project's .csproj or .vbproj file).
2.Add a root element named parameters to the file, as shown in the following example:
and
http://vishaljoshi.blogspot.co.uk/2010/07/web-deploy-parameterization-in-action.html

Similar Messages

  • Overriding SPMetal Defaults by Using a Parameters XML File

    hi everybody,
    I have a datatable
    Employee below :
    FullName Single line of text
    Age
    Number
    After use SPMetal to generate entities, i have
    EmployeeItem below:
    FullName string
    Age
    double?
    I want Age is Integer so i use "Overriding SPMetal Defaults by Using a Parameters XML File" :
    <?xml version="1.0" encoding="utf-8"?>
    <Web AccessModifier="Public" xmlns="http://schemas.microsoft.com/SharePoint/2009/spmetal">
    <List Name="Employee" Type="Employee">
    <ContentType Name="Employee" Class="Employee">
    <Column Name="FullName" />
    <Column Name="Age" Type="Integer" />
    <ExcludeOtherColumns/>
    </ContentType>
    </List>
    <ExcludeOtherLists />
    </Web>
    When generate it have error "There is an error in XML doc" at :
    <Column Name="Age" --error here-- Type="Integer" />
    Would you like help me?

    Hi,
    I came across the same error when testing your code in my environment.
    Anyway, if we convert the Number field to Integer, there will be a risk of damaging our data due to the conversion accuracy.
    So if you want to use the Integer type of data, a workaround is that you can convert the double type of data to Integer type programmatically after retrieving the data you want.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Parameterized XSLT XML file

    I apologize if this topic is out of place, but I can not find any forum more suitable to my question. Please advise.
    I use XML and XSLT to render a "tree" in my jsp page. When user clicks a tree leaf, a new page is loaded.
    Each user will see a different tree, depending on his role defined in the application. The worst thing I can do is to have a different XML file for each role.
    Is is possible that I can have just one XML file defining a generic tree, and depends on user role, certain branches and leaves are displayable. In another words, is it possbile to have a XML file parameterized by an external variable.
    The external variable here is the user role, which comes from a session scope bean.
    MSXML has similar feature that is quite close, but my app is based on Java, Struts on Unix.

    Thanks for the hint. I am newbie, and I am quite at lost to make this work.
    Here is my tree xml file tree.xml ( a portion of if)
    =======
    <?xml version="1.0" ?>
    <?xml-stylesheet type="text/xsl" href="../css/xmlTree.xsl"?>
    <!DOCTYPE tree SYSTEM 'tree.dtd'>
    <tree>
    <branch id="IDAdmin"> <!-- Start User Administration branch -->
    <branchText> User ID Setup</branchText>
    <leaf> <leafText> Add</leafText> <link>../add_user.jsp</link> </leaf>
    <leaf> <leafText> Change</leafText> <link>#</link> </leaf>
    </branch> <!-- End of User Administration branch -->
    ===================
    Here is the xmlTree.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"></xsl:output>
    <xsl:param name="roleNm" select="'ADMINISTRATOR'"/>
    <xsl:template match="/">
    <html>
    <head>
    <title>XML Tree Control</title>
    <link rel="stylesheet" type="text/css" href="../css/xmlTree.css"/>
    <script type="text/javascript" src="../js/xmlTree.js"></script>
    </head>
    <xsl:apply-templates/>
    </html>
    </xsl:template>
    <xsl:template match="tree">
    <body>
    <b><xsl:value-of select="$roleNm"/></b>
    <xsl:apply-templates/>
    </body>
    </xsl:template>
    Here is a portion of my jsp page
    <frame name="nav_frame" bgcolor="#FFFFCC" src="tree.xm"/>' frameborder="0"
    Can youn kindly give me a bit more detail where the setParameter call should be set ? I guess it will be a scriplet in my jsp, but I don't know how to put them together. Thanks

  • Init parameters in web.xml file

    Hi,
    I have a query related to the init parameters defined in web.xml file.
    When does a servlet read these parameters?
    Also, how does servlet use these parameters while processing the client's request?
    Thanks in advance......

    hai,
    In order to make servlet flexible we must avoid hard-coding(writing-directly).so there are two ways in that one one way is init param's.
    create ServletConfig object as show below
    ServletConfig config=getServletConfig();then retrieve the init param value in to your servlet us getInitParameter(..) method as show below
    String something=config.getInitParameter("init param name");

  • How to declare global parameters in .xml file

    My requirement is to customize the Account Analysis report and need to add two parameters(PO Number And Item).In the Dev Instance I have done by creating the customizing package instead of XLA_ACCT_ANALYSIS_RPT_PKG to some xxxx_pkg used in the XLAAARPT.xml file.But when i am doing this in Production the user does not have access to the Packages he has only access for tables and synonyms.I am unable to create the customize package is there any other way to decalre and use parameters in XLAAARPT.xml file.
    If there is any possibility please provide me the solution as soon as possible.
    Thanks in advance

    see Re: Adding new parameters to Account Analysis report
    and don't duplicate post

  • Help on web.xml file, what if the parameters contains key words ?

    Hi:
    I am just wondering what should I do if I want to include key words suchs
    as <param> in web.xml file for a servlet config.
    Example:
    <servlet>
    <servlet-name>testServlet</servlet-name>
    <parameter>
    <param-name>some name</param-name>
    <param-value>some value</param-value>
    </parameter>
    </servlet>
    What should I do if I want to repleace 'some value' with '</param-value>some
    value' and still to prevent the engine to terminate parsing the param-value
    at the fake ending? Is there a standard way in XML to distanguish that?
    (in URL format it can be replaced %xx for some chars).
    ie,
    <param-value> </param-value>some value</param-value>
    where the second </param-value> is the real ending.
    Thank you!
    Gang

    Hi!
    You can use "& lt ;" and "& gt ;" xml entities for that. Or wrap text element in <![CDATA[...]]> section.
    Regards,
    Ignat.

  • Passing Parameters from XML file to Java Application

    Can any one help me to know the way of passing values from XML file to Java Application..
    Thanx in advance

    With the Processing Instructions <?name pidata?>
    Get the Nodes in a Document.
    Node node;
    if(node.getNodeType()==Node.PROCESSING_INSTRUCTION_NODE)
    //String param=node.getData();

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

  • Create prov.xml file error 14 or 28

    When I wan’t to create a prov.xml file for Muse to activate computers in the Enterprise I get the 14 error, the comandline I use is: 
    adobe_prtk --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --leid=Muse-1.0-Win-GM
    Copyright 2012 Adobe Systems Incorporated 
    All rights reserved. 
    Return Code Code = 14
    When I use the comandline  with provfilepath I get the error 28;  
    adobe_prtk.exe --tool=VolumeSerialize --generate -- serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --leid=Muse-1.0-Win-GM --provfilepath=C:\temp\prov.xml
    Copyright 2012 Adobe Systems Incorporated 
    All rights reserved. 
    Return Code Code = 28
    What goes wrong, any help would be appreciated
    TIA.
    Harmen

    Hello Harmen, please check the %temp%\oobelib.log after completing your first command. This will reveil more details.
    @Adobe:
    I do get the same error code 14 (and then 19) when running the above command for leid=DesignSuiteStandard-CS6-Win-GM
    del "%temp%\oobelib?.log" /q /s
    %~dp0adobe_prtk --tool=VolumeSerialize --generate --serial=xxxxxxxxxxxxxxxxxxxxxxx --leid=DesignSuiteStandard-CS6-Win-GM --regsuppress=ss --eulasuppress --locales=de_DE --provfilepath=%temp%
    ren "%temp%\oobelib.log" oobelib1.log
    %~dp0adobe_prtk --tool=VolumeSerialize --stream --provfile=%temp%\prov.xml
    ren "%temp%\oobelib.log" oobelib2.log
    Permissions are correctly set for \SLStore and \SLCaches. Prov-File-Path was set to %temp% and is accessible/writable. Scripts were run with elevated privileges.
    In Adobe's damn bad documentation I found a hint that Adobe Application Manager (now Adobe Creative Cloud Client) is required for the VolumeSerialize commands to work* but in my case this didnt change a thing...
    * p.135 http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/DE/AdobeApplicat ionManagerEnterpriseEditionDep…
    further reading chapter "Volumenserialisierung des Pakets" Creative Cloud-Hilfe | Verwenden von Adobe Provisioning Toolkit Enterprise Edition
    Adobe advises to catch the %temp%\oobelib.log which includes more information. However make sure to backup this file after each run of adobe_prtk because it gets overwritten :/
    My results:
    - step 1 "generation of prov.xml" ends with OOBELIB: SN validated for AAMEE Mode; stat = 27; Adobe PRTK: Failed to validate the serial number  => Code 14
    - step 2 "activation" ends with "invalid prov.xml" because of step 1 => Code 19
    Once I set provfilepath to c: or c:\ step one quits with return code 28 (sufficient rights are set though). Whenever I omit the provfile-Parameters in step 1 and 2 I still receive return code 14 and 19.
    Btw. another hint: check logs when doing a single command line serialization... For me I get loads of errors and end up with a trial mode and register popup
    adobe_prtk --tool=Serialize --leid=DesignSuiteStandard-CS6-Win-GM --serial=xxxxxxxx [email protected]
    Please help me out
    PS: We're on ETLA (OTH Regensburg, former University of Applied Sciences, Ratisbon)

  • Error reading XML file in URL

    On my application I need to take the parameters from a configuration �object� at a XML file outside the Jar file. Executing an applet and through the appletviewer I can read the file if it is on the same folder. When executing from a browser I can not locate the file.
    I have created a class with the code:
            URL codeBase = this.getCodeBase();
            URL url = null;
            try {
                url = new URL(codeBase, "filename.xml");
         .........When I execute the code above the following error appears: java.applet.Applet.getCodeBase(Unknown Source).

    You want to display it or work with the content of the XML File?
    For displaying you do not need a jsp to do that the link to the *.xml will be enough.
    Otherwise you need to parse it, either with a SAX or DOM Parser. Look for dom4j, it is easier for the start as I think.
    Regards
    Tarik

  • XML file is not being displayed in browser? Why?

    Hi all!
    I have a secnario file->XI->J2EE appl.
    I am using  File sender adapter and HTTP Receiver adapter.
    I placed XML file in D:\somedir of my machine, it is picking up well by XI, <b>all i want to know is how XI sends this XML file to my J2EE Appl.</b>Because my servlet should display the same XML file in browser. I deployed my J2EE appl on weblogic application server9.0 I am getting the following error:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://localhost:7001/Invoke/DisplayRes'.
    These are settings that i have given in my Receiver HTTP adapter:
    Aadapter Type: HTTP
                       Receiver
    Transport Protocol:  HTTP1.0
    Message Protocol:    XI payload in HTTP body
    Adapter Engine:      Integration Server
    Addressing Type:     URL address
    Target host:         localhost
    Service Number:      7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
    Path     :  /Invoke/DisplayRes/(Context path of J2EE appl)
    Authentication Type:Use Logon Data for SAP System
    Content Type: text/xml
    Username:   xiappluser
    password:   xx
    XML code:   UTF-8
    This is my Servlet code:
    public class DisplayRes extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         doPost(request,response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
         String inputLine;
         StringBuffer sBuf = new StringBuffer();
         PrintWriter out = response.getWriter();
         response.setContentType("text/xml");
         while ((inputLine = brin.readLine()) != null)
             sBuf.append(inputLine);
               out.println(sBuf.toString());
              brin.close();
             out.flush();
    Where i went wrong please help me,
    NOTE: I want to know how XI sends XML file to my J2EE appl. I suppose my servlet receives it in request object.If so can i use like:
    response.setContentType("text/xml");
      String xmlFile = request.getParameter("myXMLFile");
      PrintWriter out = response.getWriter();
      out.write(xmlFile);
      out.flush();
      out.close();
    Please help me!
    Thanks a lot!

    Hi Datta,
    You seem to have big problem with this scneario as you have raised this question couple of times , in couple of topics / threads. I will try to make a few things about this clear.
    1. XI when sends data to a J2EE application , in your case a servlet, I believe you must be using a HTTP adapter to post the data to it. Whenever XI will post a XML data to a HTTP resource , it will post it as the request body and that is why the code in one of my previous post reads,
    BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
    String inputLine;
    StringBuffer sBuf = new StringBuffer();
    PrintWriter out = response.getWriter();
    response.setContentType("text/xml");
    while ((inputLine = brin.readLine()) != null)
    sBuf.append(inputLine);
    out.println(sBuf.toString());
    brin.close();
    out.flush();
    If you 've noticed, the statement
    request.getInputStream()
    retrieves the body of the request as binary data using a ServletInputStream.
    So your answer to your question is
    <b>XI transferes data to a servlet as a part of HTTP request body</b>, if you use a HTTP adapter.
    2. By J2EE application , if you mean a server java proxy, then the method whose name matches with that of the Inbound Message interface recieves a parameter , from which you can retrieve the parameters passed by XI. Just check the getters of that object.
    Hope this clears your basic doubts!!!
    Rgds,
    Amol

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file

    Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
    web application’s User Policy.  I can use these services just fine using Nintex 2013 Workflow.
    Open InfoPath Designer 2013.
    Select Blank Form and click Design Form button.
    Click “Data” tab.
    Click “From Web Service” and select “From SOAP Web Service”
    Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
    Click Next.
    Windows Security window pops up.
    Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
    Click OK. It prompts for credential multiple times.
    I get below this error messages: 
    Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
    InfoPath cannot find or cannot access the specified Web Service description.
    The file is not a valid XML file.
    Not enough storage is available to process this command.
    We have a project that is in need of these services using InfoPath so any help is greatly appreciated.

    Hi Brian_TX,
    For your issue, try to the following methods:
    Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
    Replace all instances of "parameters" from the web service wsdl with the name "parameter"
    There are some similar articles about the issue, you can have a look at them:
    http://www.infopathdev.com/forums/t/23239.aspx
    https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
    Best Regards
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • XML file not readable

    Hi all,
    we have a xml file found in the internet delivering actual currency rates (http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml). After downloading this file I tried to create a Data Server. But when testing the Data Server the following error is raised:
    java.sql.SQLException: ODI-40750: The model generated by the model mapper was not accepted by a validator: Model not accepted: ODI-40817: Namespace not found:
    I used the JDBC Url: jdbc:snps:xml?f=c:\temp\eurofxref-daily.xml. Is this sufficient?
    Other xml files work well but this one creates problems.
    any ideas?
    best regards
    Thomas

    Try This URL
    jdbc:snps:xml?f=D:\oracle\product\11.1.1\Oracle_ODI_1\demo\xml\GEO_DIM.xml&re=GEOGRAPHY_DIM&ro=false&case_sens=true
    Just change the parameters and test it.
    Bhabani
    http://dwteam.in

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

Maybe you are looking for