Incorrect MIME type for XML Data Connection POST requests

It appears that Xcelsius 2008u2019s XML Data Connection logic does not specify the correct MIME type for the data it sends to the server in its POST request.  Using an HTTP debug proxy, I was able to see that Xcelsius sends XML data in the POST, but is setting a content-type of u201Cx-www-form-urlencodedu201D.  According to the W3C spec:
  http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
Data sent with a MIME type of u201Cxxu201D should be encoded as key?value pairs, like this:
  key1=val1&key2=val2&Submit=Submit
So, what Xcelsius is doing is clearly incorrect.  Worse, if your server process is a Java servlet, you may find that the POSTed data will be gobbled up by the servlet container and you wonu2019t be able to read it using a getInputStream(), or getReader() call because itu2019s already been processed by a call to the getParameter() method.
The correct mime type for POSTing an XML formatted request from Xcelsius should be "text/xml".
Wayne

Hi,
The Error #2032 your getting is due to the Flash player security.
To remove this this error you need one crossdomain Xml file in the root directory which actually provides a lot more control over who has access to your data from a SWF. The cross domain policy is attached as crossdomain.xml.
In the XML file, it is used a wildcard (*). This allows a SWF located on any machine to access your data source. You can certainly use an IP address or domain name to restrict access rather to opening it up completely. I always start with the wildcard to make sure my dashboard works, then start restricting access as necessary.
Here is a whitepaper with everything you need to know about Flash player security:
http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
Please let me know if you need any more clarification.
Regards,
Sanjay

Similar Messages

  • Mime type for xml

    i am writing a code in jsp which should download a xml file in client machine. now the problem is while loading it is showing to store the .jsp file to be stored which is storing it in xml format , but the alert message shown is showning to save as storexml.jsp which is a jsp extension. i want it to show as a xml extension
    response.setContentType("application/vnd.xml");
    filename="xyz.xml";
    try{     
    int i;
    FileInputStream f=new FileInputStream(filename);
    while((i = f.read()) != -1){
         out.write((char)i);
    }catch(Exception e){
         Log.debug("can not write file in viewxml.jsp,exception :"+e);
         System.out.println("can not write");
    i think the mime type should be something to deal with. could anyone tell me the correct one which will store it showing a .xml format by default.

    but usually in some sites i have seen to upload files which gives a setting , if i dont have a text editor tehn i get the file window to save as document type but i if i have a editor then it should give to save as xml by default.
    even that itried with storing as xls file which works fine there mime type is 'application/vnd-excel'
    but it should work same as well in xml instead of it showing jsp document

  • Extension type for mime-type "multipart/form-data"

              Hello:
              If I want to register a mime-type of type "multipart/form-data" in WebLogic 6.0
              what, if any, extension should I specify fot it in the web.xml? Is it necessary
              to specify this mime-type for handling "multipart/form-data" type http requests?
              Thanks
              John
              

    You cannot use request.getParameter() for Multipart/form-data.
              You need to Use getInputStream and use the InputStream to read data.
              Please Refer Jeason Hunters Implementation for the same. Its a very good example.
              Kumar.
              John Buckley wrote:
              > Hmm. Strange. When I send in a multipart/form-data request and when I try to do
              > a request.getParameter within my servlet it returns null and also throws a socket
              > exception at the server console.
              >
              > Any ideas?
              >
              > John
              >
              > Mettu Kumar <[email protected]> wrote:
              > >I don't think its neccesary as I am able to run my code with wls6.0 without
              > >registering
              > >multipart/form-data.
              > >
              > >kumar.
              > >John Buckley wrote:
              > >
              > >> Hello:
              > >> If I want to register a mime-type of type "multipart/form-data" in
              > >WebLogic 6.0
              > >> what, if any, extension should I specify fot it in the web.xml? Is
              > >it necessary
              > >> to specify this mime-type for handling "multipart/form-data" type http
              > >requests?
              > >>
              > >> Thanks
              > >>
              > >> John
              > >
              

  • (261705413) Q RPCC-21 Missing text/xml MIME-type for WSDL files?

    Q<RPCC-21> Would it mess up the SOAP operations that clients do when using the
    WSDL in a dynamic client to put a text/xml mime type in the WSDL-providing jsp?
    A<RPCC-21>: It is a known issue that the MIME-type for WSDL files is not appropriately
    transmitted so some web browsers will not identify an appropriate helper application
    when they are viewed (for Netscape just press Ctrl-U to view the source). This,
    however, does not affect the dynamic client as evidenced by the example code seen
    in the code demonstration.
    Adam

    SR,
    You probably already have the answer by now, but I just came across the same problem and found the answer elsewhere.
    The trick is to have the JavaMail jar in your classpath BEFORE the JAF jar. Given the habit of my development environment to sort jars alphabetifally it had me stumped for a bit.
    Good luck
    Marc

  • XML Data Connection : Relative path

    Hi,
    I'm new to Xcelsius
    I have added an XML Data Connection with a static path pointing to a xml file in my C:/
    Now I would like to point the path to a relative path like ./ where the XML file be place in the same place as the dashbord.
    How can I do this?
    ~SaNv...

    I have inserted a text field to get the xml file input path and inserted that  on a cell.
    Then made tha XML connection to read this cell for loading the XML file. This works fine in the xcelsius preview, however when I exported this as an swf/pdf i get the below error in accessing the XML.
    To access external data, this file must be trusted.
    For a PDF file, in Adobe Reader, click Edit > Preferences > Security (Enhanced).
    For any other file type:
    **Do NOT click OK until you have read all the following steps.**
    1. Click OK to close this message and open the Adobe Settings Manager in a web browser.
    2. Click Global Security Settings Panel.
    3. On the Global Security Settings Panel:
       a). In the u201CAlways trust files in these locationsu201D drop-down, select Add location.
       b). Click Browse for files.
       c). Do one of the following:
           - For a PowerPoint file, navigate to the PowerPoint.exe location.
           - For all other file types, navigate to the location of this file.
       d). Click Open.
    4. Close the Adobe Settings Manager. Re-open this file.
    If the problem persists, contact the file creator or your system administrator.
    Error: Error #2148
    Connection Type: XML Data
    File URL: file:///C:/Documents%20and%20Settings/santhosh/Desktop/final.swf
    External Data URL: C:\Documents and Settings\santhosh\Desktop\test.xml
    I have also added the XML file in the Global secuirity testing
    ~SaNv...

  • Power View in SharePoint Server - The data extension type for a data source is not valid

    Hi All,
    All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
    "The current action cannot be completed. The data extension type for a data source
    'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
    I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
    a Power View report.
    Please help me to resolve the error.
    Thanks

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • Powerpivot for sharepoint error: Unable to refresh data for a data connection in the workbook

    Hello,
     I have three errors when i try to use a simple powerpivot workbook published in sharepoint: (nothing on google has help me..)
    1-Unable to refresh data for a data connection in the workbook.
    Try again or contact your system administrator. The following connections failed to refresh:
    PowerPivot Data
    2-The embedded PowerPivot data in the workbook cannot be loaded due to a version mismatch
    3-01/21/2012 17:26:47.08  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel
    Calculation Services     bccc Medium   Session.HandleTrimmedWorkbookReloading: userOperation ApplySlicerSelectionOperation requires BaseWorkbook: "http://crm2011:2020/Marketing%20Reports/test2_excel32bits.xlsx"
    [0x409] [Saturday, 21 January 2012 09:40:18] [BaseWB ID: 2] to be untrimmed if it is currently trimmed. The workbook is currently NOT trimmed. fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.08  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     f1va Medium   CWorkbookWrapper::CWorkbookWrapper: Created with ID=4 fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.09  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     eq3r Medium   ConnectionRequest.ConnectionRequest: New connection request. SessionId=1.V21.4PI+fCwIq52LH++nOoMzs90.5.en-US5.en-US73.-0060#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-006036.bfceb31b-7122-46ca-9e2a-ae52cefcfcaf1.N,
    WorkbookVersion=ConnectionInfo.WorkbookVersion: Uri=http://crm2011:2020/Marketing Reports/test2_excel32bits.xlsx, Version=Saturday, 21 January 2012 09:40:18 fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     aysl Medium   Succeeded to initialize a chart. fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     8xk9 Medium   ExternalSource.ExecuteOperation: We exhausted all available connection information. Exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException: Exception of type
    'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException' was thrown.     at Microsoft.Office.Excel.Server.CalculationServer.ConnectionInfoManager.GetConnectionInfo(Request request, String externalSourceName, Int32
    externalSourceIndex, Boolean& shouldReportFailure)     at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.ExecuteOperation(Request request, ExternalSourceStateInfo externalSourceStateInfo, ExternalSourceStateInfo prevExternalSourceStateInfo,
    Int32 index, ConnectionInfoManager connectionInfoManager, ExternalDataScenario scenario, DataOperation dataOpe... fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12* w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     8xk9 Medium   ...ration, Boolean verifyPreOperationConnection), Data Connection Name: PowerPivot Data, SessionId: 1.V21.4PI+fCwIq52LH++nOoMzs90.5.en-US5.en-US73.-0060#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-006036.bfceb31b-7122-46ca-9e2a-ae52cefcfcaf1.N,
    UserId: 0#.w|contoso\manager fb614a65-e398-4b97-a98d-fb7b23eab39f
    My server and client olap versions are the same: MSOLAP.5, i used sql server 2008 R2 SP1 and sharepoint 2010 SP1 and reboot or iisreset have no effect
    Thanks in advance for your help

    Hello Challen Fu
    I would be so grateful if you could please help me out
    I have been trying to find a solution to the same error message
    In my case, the power pivot reports were working before on a regular team  site , but then two things changed:
    a)  I  created a toplevel site using the BI Center template. Now I am using a Business Intelligence template , created a power pivot gallery library and uploaded a few powerpivot reports
    b)  On the  backend, the database instance was upgrated to SQL Server 2012 
         Front end Server VDSP01  remains  SQL Server 2008 R 2 where Sharepoint 2010  was installed as a FARM  
    Now, the reports will display in sharepoing however they will not refresh. the error message i get is the same.
     Scenario recap:
    a- Server VDSP01  uses SQL Server 2008 R 2 where Sharepoint 2010  was installed as a FARM
    b- On the back end,  the database instance name was replaced with SQL 2012 Server:
               from SQL Server 2008 R 2 (instance DBDEV-COTS\COTS)
               to     SQL Server 2012 ( instance VTSQL01\COTS)
    c-  I was told that:
         From VDSP01, they ran
    CliConfg.exe   to create SQL Server Alias :
           where    BEFORE: vdsharepoint -->  DBDEV-COTS\COTS
                and  AFTER    : vdsharepoint -->  VTSQL01\COTS
     I appreciate in advance any help you can provide<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
      <v:stroke joinstyle="miter">
      <v:formulas>  <v:f eqn="if lineDrawn pixelLineWidth 0">
      <v:f eqn="sum @0 1 0">
      <v:f eqn="sum 0 0 @1">
      <v:f eqn="prod @2 1 2">
      <v:f eqn="prod @3 21600 pixelWidth">
      <v:f eqn="prod @3 21600 pixelHeight">
      <v:f eqn="sum @0 0 1">
      <v:f eqn="prod @6 1 2">
      <v:f eqn="prod @7 21600 pixelWidth">
      <v:f eqn="sum @8 21600 0">
      <v:f eqn="prod @7 21600 pixelHeight">
     <v:f eqn="sum @10 21600 0">
    </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
     <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
    <o:lock aspectratio="t" v:ext="edit">
    </o:lock></v:path></v:stroke></v:shapetype> <v:shape alt="" id="Picture_x0020_2" o:spid="_x0000_i1025" style="width:630pt;height:475.5pt;" type="#_x0000_t75">
    <v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\wlarange\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg">
    </v:imagedata></v:shape>
    wanda larangeira

  • Xml data connection issue.

    Hi all,
    I have created an XML data connection in xcelsious that reads data from xml file and creates the stacked bar chart. Also used connection refresh button to refresh the data from xml file.
    For using xml data connection we have to give the fix structure of xml file, like we have to add range according to the data source and also have to give the name of range in xml file.
    The issue is if data is changed at run time then the xml file structure will not be fixed, in that case bar chart shows only the data of the range given in xml data connection and new data is not shown by the connection.
    For example if we want to show the monthly revenue of some areas in stack bar chart, but the number of areas are not fixed. So we canu2019t fix the number of stacks [number of range] in xml data connection. In that case it only shows the no of areas that are fixed in xml data connection.
    Is there any way to change the range in xml data connection so new changed data can also be displayed in bar chart or is there some other way so we donu2019t have to fix the structure of xml file?
    Thanks in advance.
    Regards,
    Neera Sharma
    Palewar Techno Solutions
    (Mobile Solutions for Your Business)
    www.palewar.com

    Hi,
    Which product are you using and in which version?
    Didier

  • How to execute the Code-Behind of .aspx linked using XML Data Connection

    I have a dashboard with a live XML Data Connection tied to a Default.aspx file.  That .aspx file has a Default.aspx.vb code-behind file tied to it with some logic in the Page_Load sub routine.  If i open the .aspx on my own in the browser, the code-behind executes properly.
    However, when I tie the .aspx to my dashboard and launch it I know for a fact the .aspx is being called (i have a placeholder on the dashboard to let me know if it executed or not) but its code-behind file is not.  I can't seem to find a solution through Google, would anyone be able to lead me in the right direction with this?  My code is as follows:
    Default.aspx
    <%@ Page Language="vb" aspcompat="true" Debug="true" validaterequest="false" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="scheduleAppointment._Default" %>
    <%    
        'tester to see that script executes, this puts "ScriptExecuted" on a label on my dashboard
        Dim sXML As String   
        sXML = "<data><variable name=" + Chr(34) + "Range_0" + Chr(34)
                      + "><row><column>ScriptExecuted</column></row></variable></data>"
        Response.Write(sXML)
    %>
    Default.aspx.vb
    Imports Microsoft.Office.Interop
    Partial Public Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                (I have code here creating a Microsoft Outlook appointment and saving/scheduling it. This is not being
                 executed when running the dashboard itself, but I know the code works if I run the .aspx on my own
                 in Internet Explorer browser)
        End Sub
    End Class

    Easy fix, apparently code-behind doesn't execute in Preview mode.  Exported to .swf and ran in the Internet Explorer browser and it worked.

  • XML data connection works in the preview, but not in the final swf

    Hello,
    I have set-up a dashboard with an XML data connection button to load XML data from an internet source. Everthing works perfect in the preview-swf within Xcelsius 4.5. But pressing the button in the exported swf does not have any effect. The dashboard is busy for 2 seconds, but no data is loaded. What could be the reason?
    Thanks.

    Yes, the location is registered. The problem also occours when the swf is opened directly on the web server where the xml-source is running.

  • What is the correct MIME type for an AD RMS protected PFILE?

    Hi,
     The context of why this question is asked is as follows: In an SAP Webdynpro application (the UI is displayed in a web browser). We intercept the file with SAP data that is being downloaded, encrypt it using AD RMS and then send the modified (encrypted)
    file back to be downloaded by the browser into the user's downloads folder.
     Because of this interception and modification of the text file being downloaded (.txt), which is now a .PTXT file (PFILE) there is a conflict in the MIME TYPE. 
    So could you let me know what the MIME type for a PFILE would be? Is there a standard MIME Type for all these PFILES? (.ptxt, .pfile etc..)? And is it by any chance "application/octet-stream"?

    Hi,
    I also noticed this - it seems that Microsoft's 4 char extensions like .docx are not being recognized by application type so that either the web server or mod-plsql is defaulting to the "application/octet-stream" mime type which refers to a file with binary content - instead of the traditional "application/msword" mime type you would expect.
    If you know, at the point of insert into your database table, both the mime type and file name, one workaround would be to check if the mime type is 'application/octet-stream' and the file's extension is ".docx" or other likely extensions and then treat it as mime type 'application/msword", etc.
    Not really a solution but might be sufficient workaround depending on your situation.
    Ted
    Edited by: Ted Martin on Oct 25, 2012 7:27 PM

  • XML data connection and XML submit button

    Hi Guys,
    another one that 'should' be straight forward.  I have an xml data connection that is used ot pull in event details (name, location, cost etc) that allows you to select various events, then fill in your contact details and then submit the form.  I need to have the form submit with the data that the user entered into the form as well as their selection of event.  When I set up the email submit button, the XML file attached to the email is actually the XML file that the form pulls the event details from not the data that the user has entered into the form.  Again I reckon this one should be straight forwad to fix, seems like a fairly normal way to operate, but I just cant find a solution.  please help

    >We are letting user know that u have thrown email to someone and we also let user know how is going to contact them.
    This is good, but you cannot stop the email from opening and the user
    needing to send it. This is, as I said, fundamental to security and
    cannot be switched off.
    >I tried using HTTP request but it still opening email option to send mail.
    This suggests you did not do it right, because when you use http, no
    mail is sent locally. Can you describe what you do?
    >
    >I want to do the way we do in the html page using javascript to set action event at click event and send data to specified email id.
    HTML cannot silently send an email either.
    Perhaps you could outline what sort of HTML JavaScript you use, so
    that we can suggest an equivalent if there is one.
    Aandi Inston

  • The MIME type for xslx file is different in Mozilla 13.0.1

    The MIME type for a xslx file is coming as "application/vnd.ms-excel.12" in Mozilla 13.0.1 instead of the "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" which comes in other browsers when using fileUpload.PostedFile.ContentType

    Firefox usually gets the MIME type from the MIME database registry key.
    * HKEY_CLASSES_ROOT\.xslx
    * HKEY_CLASSES_ROOT\MIME\Database\Content Type

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

  • Data source for this data connection isn't registered for Power BI

    Hi, I am getting this error when I set Schedule Data Refresh to refresh data from db.  How do I register my connection to the data source?  Is this a fix on SQL server or Power BI?
    FAILURE INFORMATION
    Failure
    Correlation ID: c5132b7a-3c54-4f12-a048-3ddcf0b95f26
    Data connection Status
    SqlServer twcperfsql1 OfficePerf OnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Tell your Power BI admin the admin needs to register this connection to this on-premises data source.
    Thanks for your help.

    I'm running into the same issue, I did configure the Gateway and then the data source in Power Bi.
    When I go to the Power BI Admin Center and click on "Test Connection" it seems to be working. But when I refresh the data from Power BI it doesn't work. Now if I edit the spreadsheet in excel and refresh the data in PowerPivot then it works. So
    not sure why the solution doesn't refresh from the automated service in Power BI without this useless error.
    Thanks
    Fabian
    In case it helps this is the actual error:
    Failure Correlation ID: ecc73a16-7264-45b2-9baf-e3448f007211                                                     
    Power Query - dbo_TableAOnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI admin to register the data source in the Power BI admin center.
    Also further information I have found so far is that the Gateway is receiving the requests for the refresh and it shows the message below, so the data source is found and communication seems to be happening from server to client and back, not sure why server
    doesn't seem to like the data the Gateway is sending back to server.
    The feed 'dbo_TableA' was successfully accessed at 7/15/2014 4:23:26 PM.
    The request took 00:00:00.0000105 seconds.
    Activity ID: e8464e5d-3f0a-49c2-b10b-450fec3e5940

Maybe you are looking for

  • Unable to connect to Deck or Camera to capture footage. Final cut pro6

    Hey guys, I am wondering if anybody who has been in my situation or know how i can resolve my problem can help me. I have been using my Deck to upload all my footage, in standard def, and my JVC GY HD100 camera to upload all HD footage without any pr

  • Killing all sessions at once who are locking the objects

    Hello all, i am working in 9i Oracle RDBMS on AIX IBM OS most of the time we face locking issue and there comes more then different 50 sessions which locking different tables. here is my script to find out what sessions are locking what tables. set l

  • How does one import just 1 picture from one's digital camera?

    I have 700 pictures on my digital camera and I only want to import one picture. Is this possible? How do I do it? Thank you.

  • Jakarta TLD in sun 1.3 ?

    i'm trying to experiment with tld's. But i can't get jakarta (EA3) stuff running in sun's 1.3 container, there is an AccessControlException. I don't find any information in the jakarta docs.

  • Upload Photo for Dependents

    Hi Experts, How to upload Family Member/Dependents Photo in Infotype 21. I done with the Employee Photo Upload(with Mass Upload). But Unable to do for Dependents. Please Advice.