PDF in HTTP multipart response: missing boundary?

Hello!
If I add my PDF to the HTTP response directly, everything works fine, so we can assume that the PDF is correct.
I need to create this response as <i>multipart/form-data</i>, and when I add the same PDF to the body of the <i>data</i> multipart (either by using ADD_CDATA or ADD_DATA methods), I get error message from the client: <i>data: Invalid argument</i>.
I examined the response by tunneling program and didn't see anything suspicious. Please see the response below.
Does anyone has experience with this?
Thanks in advance!
Regards,
Igor
Response:
HTTP/1.0 200 OK
content-type: multipart/form-data; boundary=ejjeeffe0
content-length:     35729
x-contentrep: AL
x-pversion: 0046
x-docid: 22b524a7-3c27-11dc-8168-8b337fac673a
x-docstatus: ONLINE
x-numbercomps: 1
x-datec: 2007-07-27
x-timec: 11:52:49
x-datem: 2007-07-27
x-timem: 11:53:11
server: SAP Web Application Server (1.0;700)
--ejjeeffe0
Content-Type: application/pdf
Content-Length: 35376
X-compId: data
X-compDateC: 2007-07-27
X-compTimeC: 11:52:49
X-compDateM: 2007-07-27
X-compTimeM: 11:53:11
X-compStatus: ONLINE
X-pVersion: 0046
X-Content-Length: 35376
%PDF-1.3
--ejjeeffe0--

Very strange thing happened: I changed the document to text/plain and it worked like charm. When I got back to my original PDF it also worked fine, and it stood fine up to now - "they lived happily ever after". Like there were never problems. I swear I didn't change anything else. Maybe if I spilled coffee on the box, it would be even better.
Igor

Similar Messages

  • Download response as PDF form ....missing info

    I have a form running that has captured and recorded the correct data...and shows up correctly in the response table however when I "downlaod the response as a PDF form" some data is missing and some is there.
    Any ideas?
    Thanks,
    Derek

    Hi Derek,
    Were you having the same problem when exporting your responses data in different format like Excel or CSV? If if is possible, please share your form with me.
    Please do the following to share your form
    1. Click on “Design tab” on the top left corner.
    2. Click on the “Share” icon on the bottom left corner.
    3. Click on “Add Collaborator” on the popup menu.
    4. Enter [email protected] under “People to share with”.
    5. In the Message edit box, type "download response as PDF form ....missing info"
    6. Click the “Share” button on the bottom right of the dialog.
    Thanks
    Ken

  • When converting from docx to pdf, some text boxes are missing. Why?

    I have a large docx file with many text boxes.  The boxes have fill and borders.  When I convert to pdf several text boxes are missing.  The text is there but the box is missing.  How can I prevent this from happening?

    Hi,
    Please share your file if possible so that I can look into the problem. Please use below link:
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    thank you.
    Hisami

  • Is it possible to create a PDF from a single response?

    I can only export the entire table, but I would like to create an individula PDF based on the response of a single submittal.
    Is this fucntion available?  If so, where?

    Check out this FAQ: http://forums.adobe.com/docs/DOC-1383

  • Xi 2.0 http multipart message format

    I'm hoping someone can remember xi 2.0. I am looking for the http that xi 2.0 accepts with a multipart message. Below is a generic multipart message but i need the format xi2.0 receives from any outside request.
    Thanks
    POST /cgi-bin/qtest HTTP/1.1
    Host: aram
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://aram/~martind/banner.htm
    Content-Type: multipart/form-data; boundary=----
    287032381131322
    Content-Length: 582

    Hi,
    Press "enter" button when you see the message "query strings are not allowed".
    Then you will be able to save your destination successfully.
    Do a test connection and you will get a reply like the following for e.g.:
      HEADER NAME                HEADER VALUE
    ~response_line               HTTP/1.0 500 Empty HTTP request received
    ~server_protocol             HTTP/1.0
    ~status_code                 500
    ~status_reason               Empty HTTP request received
    content-type                 text/xml
    content-length               814
    content-id                   <[email protected]
    soapaction                   'http://sap.com/xi/XI/Message/30'
    server                       SAP Web Application Server (1.0;640)
      HTTP BODY
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">#<
    SOAP:Header>#</SOAP:Header>#<SOAP:Body>#<SOAP:Fault xmlns:SOAP="http://s
    chemas.xmlsoap.org/soap/envelope/"><faultcode>SOAP:Client</faultcode><fa
    ultstring>Empty HTTP request received</faultstring><faultactor>http://sa
    p.com/xi/XI/Message/30</faultactor><detail><SAP:Error xmlns:SAP="http://
    sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/en
    velope/" SOAP:mustUnderstand="1"><SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code><SAP:P1/>
    <SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText/><SAP:ApplicationFaultMes
    sage namespace=""/><SAP:Stack>Empty HTTP query received. No message proc
    essing possible##</SAP:Stack></SAP:Error></detail></SOAP:Fault>#</SOAP:B
    ody>#</SOAP:Envelope>#
    Also note that the query string given in the documentation has wrong syntax.
    The path prefix shld be: /sap/xi/engine?type=entry
    Regards,
    Sridhar

  • Invalid XML Response - missing xmlns=''

    I have a simple BPEL WebService using a xsd elementFormDefault="unqualified".
    {color:#0000ff}+&lt;schema attributeFormDefault="unqualified"+
    elementFormDefault="unqualified"
    targetNamespace="http://xmlns.oracle.com/InvalidXMLResponse"
    xmlns="http://www.w3.org/2001/XMLSchema"&gt;
    +&lt;element name="InvalidXMLResponseProcessRequest"&gt;+
    +&lt;complexType&gt;+
    +&lt;sequence&gt;+
    +&lt;element name="input" type="string"/&gt;+
    +&lt;/sequence&gt;+
    +&lt;/complexType&gt;+
    +&lt;/element&gt;+
    +&lt;element name="InvalidXMLResponseProcessResponse"&gt;+
    +&lt;complexType&gt;+
    +&lt;sequence&gt;+
    +&lt;element name="result" type="string"/&gt;+
    +&lt;/sequence&gt;+
    +&lt;/complexType&gt;+
    +&lt;/element&gt;+
    +&lt;/schema&gt;+{color}
    I invoke this WebService with the Web Service Test Page of OC4J
    and get an invalid xml-response (missing xmlns="").
    If i look inside the bpel-console in the instance-flow at the reply activity the
    xml-response looks good.
    GOOD Reponse (at bpel-console):
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result {color:#ff0000}*xmlns=""*{color}&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    Invalid Response (at every WS Client):
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    It seams that the xml serializer of the oc4j container does create a valid xml-response.

    I just retested the testcase with an other test environment (10.1.3.4 MLR#3) and everything worked fine.
    {color:#0000ff}+&lt;env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;+
    +&lt;env:Header/&gt;+
    +&lt;env:Body&gt;+
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result xmlns=""&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    +&lt;/env:Body&gt;+
    +&lt;/env:Envelope&gt;+{color}
    So there should be an availagle bugfix for this issue.
    I need this bugfix for 10.1.3.3.1 because this is our production environment.

  • How to handle http 302 response in OEG

    how to handle http 302 response.
    The URL has moved <a href="https://............................
    I am using "Connect to URL" and "Reflect message" filters and I am getting http 302 response. In the http esponse body/content I have the "The URL has moved <a href="https://............................"
    How to connect to this url.
    Thank you very much for your help.

    hi
    I took your advise on the second approach and added new filter to catch 302 response and read the new URL from Location. Here is the flow.
    Connect to URL --> Is HTTP CODe =302 --> Retrieve Location from Http Header- Rewrite URL - Dynamic Router - Connection
    I am getting a new error as below. I verified the certificates using the below open ssl comands and added them to the certificate store in OEG. The error comes from the Redirect URL which is cs12.salesforce.com
    C:\Program Files\GnuWin32\bin>openssl s_client -connect test.salesforce.com:443 -showcerts
    and
    C:\Program Files\GnuWin32\bin>openssl s_client -connect cs12.salesforce.com:443 -showcerts
    thank you for your time and help.
    ERROR 06/May/2012:00:22:23.125 [14e0] nested fault: SSL protocol error
    error:140CF086:SSL routines:SSL_VERIFY_CERT_CHAIN:certificate verify fai
    led
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate veri
    fy failed:
    java.lang.RuntimeException: SSL protocol error
    error:140CF086:SSL routines:SSL_VERIFY_CERT_CHAIN:certificate verify fai
    led
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate veri
    fy failed
    at com.vordel.dwe.ConnectionCache.getConnection(Native Method)
    at com.vordel.circuit.net.ConnectionProcessor$State.tryTransaction(Conne
    ctionProcessor.java:482)
    at com.vordel.circuit.net.ConnectionProcessor.invoke(ConnectionProcessor
    .java:650)
    at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.jav
    a:154)
    at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.ja
    va:43)
    at com.vordel.circuit.InvocationEngine.processMessage(InvocationEngine.j
    ava:229)
    at com.vordel.circuit.SyntheticCircuitChainProcessor.invoke(SyntheticCir
    cuitChainProcessor.java:36)
    at com.vordel.dwe.http.HTTPPlugin.invokeDispose(HTTPPlugin.java:290)
    at com.vordel.dwe.http.HTTPPlugin.invoke(HTTPPlugin.java:131)

  • PO 7.4: NW BPM: HTTP Error response for SOAP request or invalid content-type.HTTP 200 OK

    Hi Experts
    I am trying to call NW BPM scenario(File to BPM) from PI, and using below adapter config.
    I am getting below error.
    Failed to call the endpoint: Error in call over HTTP: HTTP 200 OK
    SOAP: Call failed: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Any idea how to fix this issue?
    Thanks,
    Sandeep Maurya.

    Hi Sandeep,
    Test the URL from your browser and check the proxy settings as well.
    Refer the below links
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT
    SOAP: Call failed: java.io.IOException: Failed to get the input stream from socket: java.net.SocketException: Connection…
    Regards
    Bhargava Krishna

  • How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking

    How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking. I have put the IIS setting X-Frame-Options:SAMEORIGIN  on my Internal CAS Server. However as the OWA page is published through
    Forefront TMG 2010, the iFrame tag is not blocked when the page is first opened. Only when you login with your credentials to the OWA page inside the frame and the page reaches IIS on the Internal CAS it gets blocked. I want to block it in the first
    instance when it is opened from TMG.

    Hi,
    Thank you for the post.
    To modify the http header, please refer to this blog:
    http://tmgblog.richardhicks.com/2009/03/27/using-the-isa-http-filter-to-modify-via-headers-and-prevent-information-disclosure/
    Regards,
    Nick Gu - MSFT

  • HTTP request/response object not thread safe.

    According to the serlvet spec. Http Request/Response
    are not thread safe. Quoting from the Spec:
    " Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic."
    This has prompt me to ask the following question.
    For Example I have a servlet which does the following
    request.setAttribute("myVar","Hello");
    The request and response is dispatched(using RequestDispatch.include(request,response)) to another
    servlet which retrieve this attribute i.e request.getAttribute("myVar");
    Is this safe?
    The Spec only said "The Container Provider must ensure that the dispatch of the request to a target
    servlet occurs in the same thread of the same VM as the original request." I take this meaning that the targeting servlet does not have to run in the same thread(only dispatch), otherwise it would be safe.

    To put it another way, you can only have onle thing working on a request at a time. For instance, the ServletContext is available to all servlets running on a server. If you tried to save a particular request to the ServletContext, it would potentially be available to many concurrently running servlets. They could all change whatever in it at the same time. Each servlet is in its own running thread. Hope that helps some.

  • SOAP Receiver Error: HTTP Error response for SOAP Request

    Hi gurus,
    I'm facing a weird error in File --> PI 7.31 java only --> soap receiver proxy.
    The other interfaces runs well. just one get the the following error:
    Exception caught by adapter framework: java.io.IOException: Error receiving or parsing request message: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.
    I check the payload and test in the inbound proxy. on error.
    Any hints?
    Thanks a lot!
    regards
    Christine

    Hello Christine,
    I faced the same issue,
    You can use the beans below to overcome the error.
    And charset should be utf-8

  • HTTP destination PI_INTEGRATIONSERVER missing (system , transaction SM59)

    Hi Experts,
    I am working on ABAP Proxy -> File scenario. When I trigger message in ECC, it is giving error.
    When I go to SXI_Monitor in ECC, the message is shown as red with error message "HTTP destination PI_INTEGRATIONSERVER missing (system , transaction SM59)". But the RFC destination PI_INTEGRATIONSERVER exists and when i tested this connection I got 500 empty request received message.
    I have configured in SXMB_ADM the ECC system as application system and mentioned 'dest://PI_INTEGRATIONSERVER' as corresponding integration server.
    Could you please help me in resolving this issue?
    Thanks and regards,
    Prasad

    Hi Prasad,
    Ensure below items in your ECC system.
    1. goto SM59
    2. ensure your RFC - PI_INTEGRATIONSERVER has this entry '/sap/xi/engine?type=entry' (without quots)
    3. Target Host has value your PI/XI hostname and correct port number (HTTP)
    4, for Logon& Security Tab, ensure to use userID PIAPPLUSER and correct password (saved)
    or Service user of Integration engine (maintained in Exchange profile)
    You can write back to me if any further help required.
    Regards
    Sekhar
    Edited by: sekhar on Dec 24, 2009 6:57 PM

  • Exchange 2007 Active sync error An HTTP 500 response was returned from Unknown.

    I tested using Microsoft Remote connectivity analyzer tool and getting following error. Please help me to fix the issue
    An ActiveSync session is being attempted with the server.
    Errors were encountered while testing the Exchange ActiveSync session.
    Additional Details
    Elapsed Time: 394 ms.
    Test Steps
    Attempting to send the OPTIONS command to the server.
    Testing of the OPTIONS command failed. For more information, see Additional Details.
    Additional Details
    An HTTP 500 response was returned from Unknown. Headers received: Content-Length: 3745 Cache-Control: private Content-Type: text/html; charset=utf-8 Date: Wed, 05 Mar 2014 18:09:36 GMT Server: Microsoft-IIS/6.0 X-AspNet-Version: 2.0.50727 X-Powered-By:
    ASP.NET HTTP Response Headers: Content-Length: 3745 Cache-Control: private Content-Type: text/html; charset=utf-8 Date: Wed, 05 Mar 2014 18:09:36 GMT Server: Microsoft-IIS/6.0 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET
    Elapsed Time: 394 ms.

    Hi Shadab,
    I have recreated the active sync virtual directory but didnt fix the issue. I have set the logging level for active sync to high and getting below event logs in apps log
    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event 
    Event ID: 1310
    Date: 08/03/2014
    Time: 17:50:29
    User: N/A
    Computer: HP-01
    Description:
    Event code: 3008 
    Event message: A configuration error has occurred. 
    Event time: 08/03/2014 17:50:29 
    Event time (UTC): 08/03/2014 17:50:29 
    Event ID: 5ff3055057084fb49978442a86866e50 
    Event sequence: 15 
    Event occurrence: 14 
    Event detail code: 0 
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-1-130384798306406250 
        Trust level: Full 
        Application Virtual Path: /Microsoft-Server-ActiveSync 
        Application Path: C:\Program Files\Microsoft\Exchange Server\ClientAccess\sync\ 
        Machine name: HP-01 
    Process information: 
        Process ID: 1972 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\SYSTEM 
    Exception information: 
        Exception type: ConfigurationErrorsException 
        Exception message: Could not load file or assembly 'Microsoft.Exchange.Clients.Owa' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Microsoft\Exchange Server\ClientAccess\Owa\web.config line 64) (C:\Program
    Files\Microsoft\Exchange Server\ClientAccess\Owa\web.config line 64) 
    Request information: 
        Request URL: https://mail.itech-it.co.uk:443/Microsoft-Server-ActiveSync/default.eas 
        Request path: /Microsoft-Server-ActiveSync/default.eas 
        User host address: 157.56.138.141 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: NT AUTHORITY\SYSTEM 
    Thread information: 
        Thread ID: 8 
        Thread account name: NT AUTHORITY\SYSTEM 
        Is impersonating: False 
        Stack trace:    at System.Web.Configuration.HttpModuleAction.get_Entry()
       at System.Web.Configuration.HttpModulesSection.CreateModules()
       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    Custom event details: 
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Thanks!
    Rajeesh

  • ACE Module - HTTP 503 Response

    Hello,
    Is it possible for Cisco ACE Module to return HTTP 503 to the user making a web (HTTP) request.
    Does ACE have any built-in HTTP error response feature.
    Thanks.

    The ACE module can't generate web page.
    You should have a server ready to send this page and you can configure ACE to redirect users to that server when required.
    Gilles

  • IPS Auto update - http error response

    Hi
    I am having trouble doing auto signature update on my AIP-SSM. This is what i am getting on #show statistics host
    Auto Update Statistics
    lastDirectoryReadAttempt = 11:00:08 GMT+08:00 Mon Jul 06 2009
    = Read directory: https://198.133.219.25//cgi-bin/front.x/ida/locator/locator.pl
    = Error: http error response: 500
    lastDownloadAttempt = N/A
    lastInstallAttempt = N/A
    nextAttempt = 12:00:00 GMT+08:00 Mon Jul 06 2009
    Fyi..my CCO credentials are perfectly fine, as i am able to download signature files manually from Cisco Download site.
    Please advise

    If you are looking at the Auto Update Statistics in your sh tech, you can see a "http error response: 500" This is an internal web server error. Are you sure there is nothing between the AIP-SSM and the internet besides the ASA? Maybe there is an embedded web server like Barracuda? Do you know if your ISP is providing proxy services for you?

Maybe you are looking for

  • Problem with SQL Server Reporting Services 2012 SP1 (SSRS) and SharePoint 2013 in a Multi-tenanted environment

    Hi All, I'm working on what appears to be a permissions issue with SSRS in a multi-tenented SharePoint 2013 environment. As part of my troubleshooting I've ignored the multitenented web application for the time being and stood up a dedicated web appl

  • BBC iPlayer has stopped working following firmware...

    Hi all I have recently upgraded the firmware on my N97 to 12.0.026 No noticeable difference that I've spotted yet but BBC iPlayer has stopped working.. I get a Script alert saying Type error: undefined value Anyone got the same? .. any solutions .. I

  • DATEADD getting a Syntax error

    I am trying to change my Promise Date when the SD.Status = 'Hold' to add 100 years so that when it sorts it it comes out at the bottom of the extract. I want the Promised Date to not change if the SD.Status is not equal to 'Hold'. The Sd.Promise_Date

  • Macbook Pro 15 Retina mid 2012 Operating temperature

    Hi everyone, i am looking for some information about Macbook pros temperatures. My mac is getting extremely hot, over 100 degrees C when i work in photoshop for example. When i watch youtube my mac reaches 87 degrees C. With all the apps quit my mac

  • Can't open System Preferences after 10.8.4 update

    After using the App Store to update from 10.8.3 to the current 10.8.4, I can no longer open System Preference or some of my other vital apps. I repaired permissions after disovering this issue as well as rebooting several times. Any suggestions? Than