Raw XML Response Stream from WeblogicServiceProxy

How can I get the raw XML response stream from a SoapMethod invoked by the WeblogicServiceProxy?
thanks,
Karthik

From what I know, all Java XML libraries make sure the XML is well-formed before attempting to read it. If you just get chunks of XML, a single chunk in itself will probably not be well-formed.
Can't you buffer the data (in a byte array input stream or something) until you get the entire XML, and only then attempt to load using SAX or whatever?
Simon

Similar Messages

  • Need Help with send raw xml to PHP from flex

    Hello all,
    I am trying to pass raw XML from flex to php.
    I can pass the data using get but need to use POST.
    When I submit the data via POST
    the data is not available in $HTTP_RAW_POST_DATA.
    Any help is greatly appreciatted

    Hello all,
    I am trying to pass raw XML from flex to php.
    I can pass the data using get but need to use POST.
    When I submit the data via POST
    the data is not available in $HTTP_RAW_POST_DATA.
    Any help is greatly appreciatted

  • Xml response in browser .. how to deal with

    OK .. I have a basic question here but I'm long winded so bear with me.
    Background:
    I am submitting an HTML form to a secure website, with a username/password, and that web site in turn returns me a webpage with XML in it that looks something like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <string xmlns="http://tempuri.org/">http://blahblah.blah.com/index.aspx?ticket=fabcdefjkjlkjlkja;lkh31bba5f7</string>
    the webpage is https, it's secured.
    I can submit the my form (not included in this post because it's not a problem) and get the XML back in the browser - but how, in my JSP or servlet (either / or) .. what is the API to retrieve the XML response (above) from the browser .......... I can manage to parse it once I can get it.
    I've done some research. but the more I do the more I get confused.
    Is it just something like request.getParameter(something or other) once the form is submitted?
    Do I need to use SAX/JAX, or DOM, XMLHTTP, javascript, HTTPClient, Xerces, Xalan ... sooooooooooo confused. ..... to actually retrieve that page into something I can work with in Java?
    Like I said once I get the page in a variable, somehow, I'm sure I can figure out how to parse the "string" variable out ................ the objective there then is to redirect the user to that URL
    I'm really lost ........... help!!!!!!!
    Thanks so much!!!!!!!!!!!!
    Edited by: hopkinca on May 16, 2008 1:04 PM

    Hi. Thanks for your thoughtful answers.
    My actual problem is much more basic. I know where to put business logic, I know how to parse XML.
    It's not either of those that is the problem.
    Here is my scenario:
    I am auto submitting a form in a servlet. (this works fine). It's an authenticated POST to an external web site.
    The submission of this form creates a browser response -- a WEB PAGE (*https*!!!!) with information I need in it (that the user shouldn't actually see). It happens to be XML. But even if it was a chapter of a book, my question is ... after the form is submitted (no problem), and the browser shows the webpage (no problem), how, in java or javascript, do I
    get the contents of that https:// webpage. (that's my problem!!)
    Does this kind of clarify my question? I'm kind of looking for more specific answers than what technology to use. Should this XML be part of the response from the POST?
    When I try to create an xml source, I get the following:
    Exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    Maybe this willhelp you. We were given the ASP code to do this.
    the way that it goes about this is
    {color:#ff0000}Set objRequest = Server.createObject("MSXML2.SERVERXMLHTTP"){color}
    objectRequest.open="POST", "https://blahlblahblah", False
    objectRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    objectRequest.Send (blah blah blah ..... the parameters
    ' my comment: AT THIS POINT THIS IS LIKE SUBMITTING THE FORM, no? Except for the red part
    'then they get the contents by this:
    dim GetTheContents
    GetTheContents = objectRequest.responseText
    Then they proceed to parse it in a very ugly fashion, but I will use DOM or the like. but at least the variable "GetTHeContents" has the contents of the https webpage that was returned by the external site after submitting the form.
    Thanks again. I hope I helped clarify instead of created more confusion.
    PS I am trying AJAX now. I still can't manage to put the contents of the webpage into some kind of variable (or get it from some other kind of variable). This is my first round with Ajax.
    Edited by: hopkinca on May 20, 2008 2:15 PM

  • Xml response from rwservlet - timinginfo format

    Hello everyone,
    We've been running reports from database using the SRW package. After we upgraded to a newer version of Application Server (we may have upgraded more that just that) the reports stopped being run.
    I discovered that the problem is in the date/time format in the XML response from the report server. The SRW package is trying to convert the timinginfo string values to date using the following hardcoded date format:
    DATE_FORMAT CONSTANT VarChar2(22) := 'MM/DD/YY HH:MI AM'; -- Date-Format used to convert the timing-info
    However, the date format in the response coming back from the server is different - see below.
    <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <job id="4314" queueType="current">
    <name>SysEmailRequest</name>
    <type>report</type>
    <status code="1">Waiting in the queue</status>
    <owner>RWUser</owner>
    <server>windev2006dev2006</server>
    <destination>
    <desType>EmailSysoeDes</desType>
    <desName>PMRFI</desName>
    <desFormat>pdf</desFormat>
    </destination>
    <timingInfo>
    <queued>Jul 28, 2006 9:51:48 AM</queued>
    <started>Jul 28, 2006 9:51:48 AM</started>
    <finished>Jul 28, 2006 9:51:48 AM</finished>
    </timingInfo>
    </job>
    </serverQueues>
    Does anyone know where to set the date format for timinginfo?
    I don't want to just modify the format in the SRW package without knowing why it changed.
    Thanks in advance,
    Rasto Sadecky

    Hello,
    The reports server uses the "machine's locale" to format the date.
    You can use the jvmoptions parameter to specify another user.language :
    rwserver server=repserver jvmoptions="-Duser.language=xx"
    Regards

  • Unmarshal SOAP response, as raw XML String with JAXB

    Hi,
    I have a soap response, as raw xml (a java.lang.String), and I want to unmarshal it's content into the classes generated by wsimport.
    This must be a simple task but I couldn't find a way to do it.
    Can someone tell me how I can achieve this ?
    Edited by: Raphael_Lemaire on May 25, 2010 8:30 AM

    Raphael_Lemaire wrote:
    Yes it works this way.
    I kind of hoped that i could use a jax-ws api to shorten the code.well, how exactly do you get that string full of xml? (as a side note, you need to be careful turning xml into strings, the data can easily broken if you don't translate the bytes into characters correctly). if you use the jaxws api to make soap calls, then you don't really need to deal with the xml at all.
    Edited by: jtahlborn on May 26, 2010 7:38 AM

  • Parse xml response from PL/SQL

    Can anyone please help me parse the xml below?
    DECLARE
       l_response     CLOB;
       g_system_id    VARCHAR2 (255);
       g_session_id   VARCHAR2 (255);
       g_user_id      VARCHAR2 (255);
    BEGIN
       l_response :=
          '--uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action><a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo></s:Header><s:Body><LoginByUserNameResponse xmlns="http://tempuri.org/"><LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /&gt;</XObject.m_element></LoginByUserNameResult></LoginByUserNameResponse></s:Body></s:Envelope>
    --uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156--';
          SELECT systemid, sessionid, userid
            INTO g_session_id, g_system_id, g_user_id
            FROM XMLTABLE (
                    xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "data"),
                    'data:LoginByUserNameResponse/LoginByUserNameResult/XObject.m_element/OnlineContext'
                    PASSING xmltype (l_response)
                    COLUMNS systemid VARCHAR2 (50) PATH '@OnlineContext',
                            sessionid VARCHAR2 (50) PATH '@OnlineContext',
                            userid VARCHAR2 (50) PATH '@OnlineContext') xt;
       DBMS_OUTPUT.put_line (
             'Session id '
          || g_session_id
          || ' System id '
          || g_system_id
          || ' User id '
          || g_user_id);
    END;
    Thanks.

    This gets you a little bit closer
    declare 
    -- Local variables here
    l_response     CLOB;
    g_system_id    VARCHAR2 (255);
    g_session_id   VARCHAR2 (255);
    g_user_id      VARCHAR2 (255);
    begin
    -- Test statements here
    l_response := '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"> 
    <s:Header>
        <a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action> 
        <a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo>
    </s:Header>
    <s:Body>
        <LoginByUserNameResponse xmlns="http://tempuri.org/"> 
           <LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"> 
              <XObject.m_element i:type="x:string" xmlns=""><OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /></XObject.m_element>
              </LoginByUserNameResult>
          </LoginByUserNameResponse>
      </s:Body>
    </s:Envelope>';
        SELECT systemid, sessionid, userid
          INTO g_session_id, g_system_id, g_user_id
          FROM XMLTABLE (
                  xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "s", 
                                 'http://tempuri.org/' as "data"), 
                  's:Envelope/s:Body/data:LoginByUserNameResponse/data:LoginByUserNameResult/XObject.m_element/OnlineContext'
                  PASSING xmltype (l_response)
                  COLUMNS systemid VARCHAR2 (50) PATH '@SystemId',
                          sessionid VARCHAR2 (50) PATH '@SessionId',
                          userid VARCHAR2 (50) PATH '@UserId') xt;
    DBMS_OUTPUT.put_line (
           'Session id '
        || g_session_id
        || ' System id '
        || g_system_id
        || ' User id '
        || g_user_id);
    end;    
    You will need to manually parse that CLOB and pull out the XML string itself from the response.  That can be done via SUBSTR and INSTR looking for the first < and last > in what you showed at least.  Updated from previous version to work properly with the xmlns="", which resets the default namespace back to the default value.  The XPath was corrected to reflect proper prefix usage.

  • Raw XML from Oracle once BI Publisher report is mapped and grouping in Word

    Hello,
    Once you have uploaded your BI Publisher report, mapped it out, etc. Does anyone know how you can still view the raw XML data, similar to what you loaded into word BI Publisher originally?
    And separately does anyone know the best way to group things in word when creating your template? I need to group off of year and then SGL but am having trouble doing this.
    Thanks,
    Jon

    XMl data will be shown under "Data' in the output layout drop down box

  • Raw XML reports from DW

    I want to save the results of a find/replace/search but the
    resulting file is raw XML. What do I do with that? Even InDesign
    doesn't show me anything useful. All the applications I have tried
    leave me with text that looks like raw HTML. I need stuff like
    lists, tables, spreadsheets. Can anyone please point me in the
    right direction?
    ~Thank you

    [email protected] wrote:
    > I want to save the results of a find/replace/search but
    the resulting file is
    > raw XML. What do I do with that? Even InDesign doesn't
    show me anything useful.
    > All the applications I have tried leave me with text
    that looks like raw HTML.
    > I need stuff like lists, tables, spreadsheets. Can
    anyone please point me in
    > the right direction?
    Raw XML will look like raw HTML, its a file with tags and
    data.
    Decide what export options you want, then look for a server
    side script
    or component that will do what you want based on the
    technologies you
    are using.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Java SAX parser. How to get raw XML code of the currently parsing event?

    Java SAX parser, please need a clue how to get the raw XML code of the currently parsing event... needed for logging, debugging purposes.
    Here's and example, letting me clarify exactly what i need: (see the comments in source)
    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
         //..Here... or maybe somewhere elsewhere I need on my disposal the raw XML code of
         //..every XML tags received from the XML stream. I need simply to write it down
         //..in a log file, for debugging purposes, while parsing. Can anyone give me a suggestion
         //..how can i implement such logging while the SAX parser only returns me the tagname and
         //..attributes. While parsing I want to log the XML code for every tag in
         //..its 'pure form', like it is comming from the server directly on the
         //..socket's input reader.
         if ("p".equals(qName)) {
              etc...
    }Than you in advance.

    YES!
    I've solved my problem using class RecordingInputStream that wraps the InputStream
    here is the class source code:
    import java.io.ByteArrayOutputStream;
    import java.io.FilterInputStream;
    import java.io.InputStream;
    import java.io.IOException;
    * @author Unknown
    class RecordingInputStream  extends  FilterInputStream {
         protected ByteArrayOutputStream sink;
        RecordingInputStream(InputStream in) {
            this(in, new ByteArrayOutputStream());
        RecordingInputStream(InputStream in, ByteArrayOutputStream sink) {
            super(in);
            this.sink = sink;
        public synchronized int read() throws IOException {
            int i = in.read();
            sink.write(i);
            return i;
        public synchronized int read(byte[] buf, int off, int len) throws IOException {
            int l = in.read(buf, off, len);
            sink.write(buf, off, l);
            return l;
        public synchronized int read(byte[] buf) throws IOException {
            return read(buf, 0, buf.length);
        public synchronized long skip(long len) throws IOException {
            long l = 0;
            int i = 0;
            byte[] buf = new byte[1024];
            while (l < len) {
                i = read(buf, 0, (int)Math.min((long)buf.length, len - l));
                if (i == -1) break;
                l += i;
            return l;
        byte[] getBytes() {
            return sink.toByteArray();
        void resetSink() {
            sink.reset();
    } Then here is the initialization before use with SAX:
    this.psock = new Socket(this.profile.httpServer, Integer.parseInt(this.profile.httpPort));
    this.out = new PrintWriter(this.psock.getOutputStream(), true);
    this.ris=new RecordingInputStream(this.psock.getInputStream());
    this.in=new BufferedReader(new InputStreamReader(this.ris));
    try {
         this.parser = SAXParserFactory.newInstance().newSAXParser();
         this.parser.parse(new InputSource(this.in),new XMLCommandsHandler());
    catch (IOException ioex) {  }
    catch (Exception ex) {  }Then the handler class looks like this (it will be an inner class, so you can access ris, from the parent class):
    class XMLCommandsHandler extends DefaultHandler {
         public void startDocument() throws SAXException {
              //...nothing
         public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
              // BEGIN - Synchronized logging of raw XML source code in parallel with SAX parsing :)
              byte[] bs=ris.getBytes();
              logger.warn(new String(bs));
              ris.resetSink();
              // End logging
              if ("expectedTagThatTriggersMeToDoSomething".equals(qName)) {
                   //...Do smth.
    }Edited by: patladj on Jul 3, 2008 12:30 PM

  • Call Xml Publisher report from Jdeveloper

    Hi,
    I am first time integrating XML publisher with Jdevloper.
    I need to call xml publisher report from Jdeveloper.
    I followed all steps from anilpassi link for sample
    its showing error while tring to open pdf file
    Error:
    Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
    Please help ,i m stuvk because of this error.
    below is the code
    EmpCO :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    // am.invokeMethod("getEmpDataXML");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("event fired");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue(null,
    "HttpServletResponse");
    try
    System.out.println("inside try");
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME, TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch (IOException e) {
    System.out.println("Exception1"+e);
    } catch (SQLException e) {
    System.out.println("Exception2"+e);
    } catch (XDOException e) {
    System.out.println("Exception3"+e);
    pageContext.setDocumentRendered(false);
    EmpAMImpl:
    public void initEmpVO() {
    EmpVOImpl vo = getEmpVO1();
    if (vo == null) {
    MessageToken errTokens[] =
    { new MessageToken("OBJECT_NAME", "EmpVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else {
    vo.executeQuery();
    public XMLNode getEmpDataXML() {
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode =
    (XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    Please help !!

    Hi,
    I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
    Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
    Please suggest way to solve this error or some other way of calling xml report from OAF page.
    Edited by: user13573749 on Apr 10, 2011 9:59 PM

  • Submitting a XML Publisher Report from JSP page

    Hello,
    We have need to submit a XML Publisher report from Quoting/iStore module in Oracle Ebusiness. The out put should be viewable in PDF format and user should be able to print. can anyone pls help on how this can be achieved.
    TIA

    Really appreciate your response. Can you pls give little more details.
    1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
    2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
    Appreciate any help

  • Displaying xml publisher report from adf page.

    I am using jdev 10.1.3.3
    I have an requirment of displaying an xml publisher report on click of command button.
    any suggestion.how this can be achived.
    according to my understanding.
    if we create a folder in our web server which oc4j in our case.and we transfer the xml report through FTP in that folder.can we able to pick the report from that folder.
    can we display or call that report.please let me know??
    Is that possible.????????????
    any help would be helpfull

    Really appreciate your response. Can you pls give little more details.
    1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
    2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
    Appreciate any help

  • XML response / Velocity template

    Hi everyone,
    I have a servlet which uses velocity engine to generate a soap request ,send it to a server and receive an xml response. How do I go about extracting the elements from the response and displaying them in a more readable format in a browser?
    Any help appreciated,
    Ruth

    you receive an XML reponse, so use an XML parser to prse and extarct the data you need.
    use sax for example to do this.
    here some examples:
    http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html
    http://www.cafeconleche.org/books/xmljava/
    http://totheriver.com/learn/xml/xmltutorial.html
    hth

  • How do you query the Hotmail Calendar with a freebusy URL to get an XML response ?

    Hello,
    I've posted this on the Exchange Server Legacy thread, but they point me back here....
    Assuming that Outlook's (Hotmail's) Calendar service still supports XML FreeBusy requests, what am I doing wrong here ?
    I'm sending this GET request to obtain an XML return that I can then further process:
    GET / HTTP/1.1
    owa/public/?cmd=freebusy&start=2014-12-04T14: 00:00+01:00&end=2014-12-08T16:00:00+01:00&interval=30&u=SMTP:*** Email address is removed for privacy ***
    Translate: t User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
    Content-Type: text/xml
    Host:
    www.calendar.live.com
    (Translate: t comes from http://www.infinitec.de/post/2004/12/31/Retrieving-a-users-availability-(freebusy-data).aspx)
    (User-Agent seems needed in order to get an XML response)
    It keeps giving me "400 - BAD REQUEST".
    What is the correct syntax for this  ?

    Hi,
    From your description, I would like to clarify the following things:
    1. If you use an Exchange account, you can use an OWA command to retrieve Free/busy information for a particular user.
    2. In your case, you use an Hotmail account. Actually, we have a dedicated support team regarding the Microsoft Outlook.com . I recommend you ask your question on our Microsoft Outlook.com forum which is staffed by more experts specializing in this kind
    of problems. Your understanding will be appreciated.
    For your convenience:
    http://answers.microsoft.com/en-us/outlook_com/forum/ocalendar?tab=Threads
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for