HTTPService POST sends header and body separately

I'm having a performance issue with XML-RPC via the
HTTPService component. The HTTPService.send() sends the request in
two parts: first the headers, then the body. Evidently, the server
get the headers, times out, sends an ACK, and then HTTPService
sends the body, resulting in very poor performance. Here's the
timeline, from the client's view:
Time = 0.000000 - POST Partial Message Headers
Time = 0.108784 - ACK for POST Partial Message Headers
received (TCP ACK Packet)
Time = 0.108824 - POST Completion of Message Headers +
Message Body (contains XML-RPC method)
Time = 0.110257 - Response received (containing XML-RPC
methodResponse)
Time = 0.359815 - ACK for Response (TCP ACK Packet)
Yep, 108ms wasted waiting for an ACK for the headers!
The question is, is there any way to cause the headers and
body to be sent together? Otherwise, I'll have to look at using
Sockets...
Thanks, JohnB

Well, I solved my performance problem by using XMLSocket,
instead of HTTPService - a shame, since HTTPService is more
appropriate.
Question: how do I determine whether Adobe knows about this
issue, and whether they care?

Similar Messages

  • Editing HTTP header and body request and sending it...

    Hi there!
    I need to create a new Packet and send it to a server, its a HTTP protocol packet and all i need to do is insert the Header and Body information after sending it to the server..
    does anyone know an example, link, book or anything about how to do it in j2se?
    Thanks very much for any help, and sorry about my english

    Anyway filter's method doFilter() takes a
    ServletRequest as a parameter, not
    HttpServletRequest, therefore I can't use
    HttpServletRequestWrapper and its method
    getHeaders().However you are actually getting an HttpServletRequest object as your actual parameter, so just cast it to HttpServletRequest and do what you need to do.

  • Mdworker[600]: No separator between the header and body in message _CMFMemoryMessage: 0x7f8665118800

    Any Suggest about this issue on console:
    mdworker[600]: No separator between the header and body in message <_CMFMemoryMessage: 0x7f8665118800>
    Best Regards

    Thanks very much. It's turned out to be a font problem. About 30 of the fonts in my account directory /users/me/library/fonts folder were corrupted. They were somehow being viewed as unix executable files instead of font suitcases. !??! No idea what happened there.
    I used Pacifist to reload fonts from my OSX installation disc, but this didn't seem to help. Instead, I found other copies of most of the corrupted fonts in the microsoft office/office/fonts folder, and replaced the corrupted fonts in my home library w/ those.
    I was alerted to the fact the the problem was fonts when I tried to open an Excel file; it came back with messages that these various fonts were corrupted and needed to be removed. Strangely, though the corrupted fonts were in my home directory font folder and not the MS Office font folder, Excel was tripping up - i.e., it wasn't using the fonts from the Office folder. Hmm.
    Finally, there are still a few fonts that are corrupted, and whose source is a mystery to me. They didn't come from the OS installation disc and they don't come from Office; consequently, I can't fix them. They are: Geneva CE, Geneva CY, GrCourier and N Helvitica Narrow.
    Does anyone know where these fonts come from?

  • Payment advice notes by email (change in sender id) and body

    Hi experts ,
    I am trying to change the sender name and body of the mail that is send by mail.does this code work i called SO_NEW_DOCUMENT_ATT_SEND_API1 in Z_PAN_EMAIL_00002040.
    look in the code and also tell me me does this work out. can some one tell me what is the 'SAPoffice'  in this code. (ls_document_data-obj_name  = 'SAPoffice'.) in fill document data part.
    FUNCTION Z_PAN_EMAIL_00002040.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_REGUH) LIKE  REGUH STRUCTURE  REGUH
    *"  CHANGING
    *"     REFERENCE(C_FINAA) LIKE  FINAA STRUCTURE  FINAA
    data: zadrnr     like adr6-addrnumber,
          zsmtp_addr like adr6-smtp_addr,
          zremark    like adrt-remark,
          begin of zcon occurs 0,
              zadrnr     like adr6-addrnumber,
              zconnumber like adr6-consnumber,
              zsmtp_addr like adr6-smtp_addr,
          end of zcon.
          refresh zcon.
          select single adrnr into zadrnr from lfa1 where
                              lifnr = i_reguh-lifnr.
          if sy-subrc = 0.
             select addrnumber consnumber smtp_addr into table zcon
             from adr6 where addrnumber = zadrnr.
          endif.
             loop at zcon.
                  clear zremark.
                  select single REMARK INTO ZREMARK FROM ADRT
                                   where addrnumber = zcon-zadrnr
                                   and consnumber = zcon-zconnumber.
                  TRANSLATE zREMARK TO UPPER CASE.
                  if sy-subrc = 0 and zremark = 'REMIT'.
                     zsmtp_addr = zcon-zsmtp_addr.
                     exit.
                  endif.
             endloop.
             IF zsmtp_addr <> ' '.
       search zsmtp_addr for 'britishcouncil' .
       if sy-subrc <> 0.
      code modified to check if sy-subrc = 0.
               C_FINAA-NACHA = 'I'.
    CODE MODIFIED AS PER SAP NOTE  1033893 .
          C_FINAA-NAMEP = 'Testname'.
        internet address of partner company clerk has been changed by pradeep akula as per requirements.
          C_FINAA-INTAD = zsmtp_addr.
          C_FINAA-FORNR = 'Z_F110_IN_AVIS2'.
      this zzmail_sender_addrr and zzmail_body_text  did not work in testing.
         C_FINAA-ZZMAIL_BODY_TEXT = 'This is a test body text'.
         C_FINAA-ZZMAIL_BODY_TEXT = 'Payment Advice Notes attached, please do not discard this message .All vendors should please add their company name'.
       endif.
    ENDIF.
    code changes done by pradeep akula for Body of mail .
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    TYPES: t_solisti1 TYPE TABLE OF solisti1,
          t_sopcklsti1 TYPE TABLE OF sopcklsti1,
          t_somlreci1 TYPE TABLE OF somlreci1.
    DATA: lt_content       TYPE t_solisti1,
          lt_packing_list  TYPE t_sopcklsti1,
          lt_header        TYPE t_solisti1,
          ls_document_data TYPE sodocchgi1,
          l_subject        TYPE solisti1-line,
          l_content_lines  TYPE i,
          lt_receiver      TYPE t_somlreci1,
          l_address        TYPE adr6-smtp_addr,
          l_new_object_id  TYPE sofolenti1-object_id,
          l_sent_to_all    TYPE sy-binpt,
          l_msg_text       TYPE string,
          l_rc             TYPE sy-subrc,
          l_user           TYPE sy-uname.
    DATA:  l_crlf(2)             TYPE  c.
    DATA:  BEGIN OF crlf,
             x(1) TYPE x VALUE '0D',
             y(1) TYPE x VALUE '0A',
           END OF crlf.
      l_crlf = cl_abap_char_utilities=>cr_lf.
    receiver address
      DATA: ls_receiver TYPE somlreci1.
      ls_receiver-receiver = zsmtp_addr.
    receiver address type (internet address)
      ls_receiver-rec_type = 'U'.
    communication type (send via internet)
      ls_receiver-com_type = 'INT'.
      APPEND ls_receiver TO lt_receiver.
    SAP name: used for the shortcut to the inbox (optional)
    l_user = p_user.
    l_user = ' '.
    mail subject
    l_subject = p_subj.
    DATA: ls_content TYPE solisti1,
          ls_header  TYPE solisti1.
    fill the document data.
      READ TABLE lt_content INDEX l_content_lines INTO ls_content.
      ls_document_data-doc_size =
        ( l_content_lines - 1 ) * 255 + STRLEN( ls_content ).
      ls_document_data-obj_name  = 'SAPoffice'.
      ls_document_data-obj_descr =  'Test mail form payment advice its working'.
      ls_document_data-obj_prio = 5.
      ls_document_data-priority = 5.
    fill data of mail
      DATA: ls_packing_list TYPE sopcklsti1.
    update the packing list.
      ls_packing_list-transf_bin = ' '.
      ls_packing_list-body_start = 1.
      ls_packing_list-body_num = l_content_lines.
      ls_packing_list-doc_type = 'RAW'.
      APPEND ls_packing_list TO lt_packing_list.
      ls_header-line = 'Test header - Vish'.
      append ls_header to lt_header.
      ls_content-line =   'Test mail form payment advice what you want to print here'.
      append ls_content to lt_content.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_document_data
          commit_work                = 'X'
        IMPORTING
         sent_to_all                = l_sent_to_all
          new_object_id              = l_new_object_id
        TABLES
          packing_list               = lt_packing_list
          object_header              = lt_header
          contents_txt               = lt_content
          receivers                  = lt_receiver
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
      keep error message
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                INTO l_msg_text.
      ENDIF.
    endfunction.

    Hi Pradeep,
    you can change the sender, when you change the system-field SY-UNAME before calling FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    REPORT Z_TEST_SEND_MAIL.
    h_uname must be a SAP-UserId.
    sy-uname = h_uname.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = DOC_CHNG
         PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = OBJPACK
          OBJECT_HEADER              = OBJHEAD
          CONTENTS_BIN               = OBJBIN
          CONTENTS_TXT               = OBJTXT
          RECEIVERS                  = RECLIST
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          OPERATION_NO_AUTHORIZATION = 4
          OTHERS                     = 99.
    I tried it and it was successfull.

  • Space between header and body section

    Hi All,
    I have a RTF template in that i am displaying the header and body section , i have more than one pages in my report so in the first page the gap between header section and the contains start after that is fine, but for the rest of the pages the gap between header and contaisn is more , can you please guide me how to decrease the space.
    Ex:
    Page 1: Header section
    ABC CORPORATION
    JJJJJJJJJJJJJJJJJJJJJJJ
    -----------------PAGE ENDS---------------------------
    Page2:
    Page 1: Header section
    ABC CORPORATION
    JJJJJJJJJJJJJJJJJJJJJJJ ------------------This space is more i need to decrease
    -----------------PAGE ENDS---------------------------
    Thanks
    Deb

    check if u have any spaces after the for each or any logic u used before data table which have spaces in between.
    send me your sample xml and template i can try at my side.
    email : [email protected]

  • RTF template design issue for header and body section

    Hi All,
    I have a RTF template having header and body sections.
    in header section i have order number, customer number etc.
    in body part i am displaying details for the respective order.
    But the problem is in header part my query is returning multiple row , so my requirement is for each row i.e order, i need to display the details accordingly.
    Ex: Header query returns order number : 1,2,3
    in my page i need below way:
    Order number :1
    a,b,c
    order number :2
    c,d,e
    order number :3
    g,h,g
    I tried to use loop in header section , but it is repeating only for header part not body part please help me on this.
    Thanks
    Deb

    Avinash thanks for your help,
    Actually in my requirement the header level and line level invoice numbers are different, in header level i have different invoices and for each invoice i need to display some other invoices along with some data.
    I have sent you the respective RTF file and Sample XML file to your mail, could you please help me on this, i am struggling whole day on this.
    the link between the header and line section is header_id.
    Thanks in advance
    Deb

  • XML to Header and Body (DOMObject)

    I have written a DOMObject class that will take a Header and Body of a message and output it to an XML string. How would i go about turning an XML document back into a Message Header and Body - any thoughts?

    i don't think its that simple - is it? - what about using selectNodes and selectSingleNodes methods to extract the correct information from the XML document - however DOM doesn't have these methods?

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

  • Every inlineframe generates HTML, head and body tag - how to remove it

    Hi,
    I am using inlineframe for adding HTML content. For every inlineframe, HTML, head and body tag is generated.
    How to get rid out of those HTML, head and body tags?
    please suggest
    Edited by: user10302920 on Feb 2, 2011 3:59 AM

    Hi,
    not sure the component is generating this. Must come from the HTML source you reference. If however it is the inline frame then this is not configurable
    Frank

  • SOAP Header and Body

    Hi All
    I am having a small requirement where my normal java program has to invoke a SOAP client and that will communicate the SOAP server by sending two xml files.
    first xml contains the attributes/properties of the content and
    second xml contains the the actaul content.
    here i have to send the attributes in the SOAP header and content as the SOAP body.
    How can i achive this. I am very new to SOAP protocal.
    please suggest me some links/documents and some guide lines to make this a success.

    Hi All
    I am having a small requirement where my normal java program has to invoke a SOAP client and that will communicate the SOAP server by sending two xml files.
    first xml contains the attributes/properties of the content and
    second xml contains the the actaul content.
    here i have to send the attributes in the SOAP header and content as the SOAP body.
    How can i achive this. I am very new to SOAP protocal.
    please suggest me some links/documents and some guide lines to make this a success.

  • How to have Header and body in reciever SOAP adapter channel

    Hi Experts,
    Please help me with the following scenario.
    I am designing a webservice scenario and have the WSDL available .
    The webservice expect the SOAP message as follows
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
        <SecurityHeader xmlns="http://onefile.cyzone.co.uk/webservices/proactive">
          <PortalID>int</PortalID>
          <Username>string</Username>
          <Password>string</Password>
        </SecurityHeader>
      </soap:Header>
      <soap:Body>
        <OrganisationCreate xmlns="http://onefile.cyzone.co.uk/webservices/proactive">
          <Organisation>
            <Title>string</Title>
            <Standards>
              <Standard>
                <StandardID>int</StandardID>
              </Standard>
              <Standard>
                <StandardID>int</StandardID>
              </Standard>
            </Standards>
          </Organisation>
        </OrganisationCreate>
      </soap:Body>
    </soap:Envelope>
    I imported the WSDL as external definition and can see all messages in XI
    In the corresponding operation( from WSDL) as given below, it indicates SecurityHeader to be used as SOAP header. However, the WSDL has OrganisationCreate and OrganisationSecurityHeader as separete messages. How do we combine these two in Message Interface.
    - <wsdl:operation name="OrganisationCreate">
      <soap:operation soapAction="http://onefile.cyzone.co.uk/webservices/proactive/OrganisationCreate" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      <soap:header message="tns:OrganisationCreateSecurityHeader" part="SecurityHeader" use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    Please advice.
    Thanks in advance,
    Mona

    Hi,
    Yes you are not supposed to create SOAP envelop, you have to cerate whole.
    See below links Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • Mailbox Quota Message, Sender, Subject and Body blank?

    Running Leopard Server, I have mail quotas enabled. System sends the email to the user but the email message From Address, Subject, and Body are blank. I have them set in Server Admin but they don't show in the message. Is there a setup file that I can edit in terminal to correct?

    Haven't checked yet on Leopard, but I would think the files are:
    /private/etc/mail/quota_warning.txt
    /private/etc/mail/quota_exceeded.txt

  • Header and body in seperate frames... why?

    Hi
    I am developing an embedded application that works with Weblogic Server. I have a problem with the response form a simple "GET" request, in that the response comes back from the server in 2 TCP frames. The first frame contains the Http header and no data. The second frame contains only the data. The combined response is only around 300 bytes, so I don't understand why it segmented into 2 frames. Question is, how can I configure Weblogic to send the response in one TCP frame?

    Hii
    Can I ask you why you are interested in having the response back in one frame (performance? I don't know really...)
    In the ISO/OSI (as TCP is some sort of implementation) from some level you should not control a lower level, but just use the primitives the interface leaves to you. Since you are at application level, whatever is the way TCP sends your data should be none of your business ;).
    Let me know,
    Ciao!
    Giupo

  • Mail header and body of message don't match

    I'm having a frustrating time with my mail. I have version 1.2.5. I have 3 accounts that download to it. 1) It is downloading the wrong messages into the wrong folders
    2) A message will say it's from a specific person, with an subject, etc... sometimes it is a reply to my message. But the body of the message will be a legit message, but from a different person. They are all people I know.
    So, it's screwing up somehow.
    It's not spam.
    I don't think it's a virus but I don't know.
    I've been told by my computer guy that it sounds like a corrupted database. I have deleted it, and reverted to a backup from Monday. I then deleted everything in the in, sent and trash. But it is still happening.
    It's also now not downloading the messages from one of the accounts at all.
    Any help would be GREATLY appreciated ---- can't get any work done!
    Thank you!
    IMacG4   Mac OS X (10.2.x)  

    I had the same problem yesterday and today. What I
    did to solve this:
    - Close Mail
    - Go to your home folder -> Library -> Mail
    - Choose the IMAP folder of the account that has
    these problems and move (not copy) it to the Desktop
    - Start Mail
    - Your mail messages will be loaded again
    While this will work, there's now a simpler solution. Control click on the mailbox giving you the problem. Select the 'Synchronize "<mailboxname>"' item from the menu. This will synchronize the message index with the messages and you should be good to go. It's a lot simple and faster than the solution above, and less prone to error.
    The problem is that the message index is getting out of sync with the actual message cache. Mail.app keeps the headers in a separate file than the actual message, so that's why you may see a legitimate subject line and sender, but when you click on it you see an entirely different (also legitimate) message.
    "Synchronize" gets the files back in sync.
    MacBook Pro   Mac OS X (10.4.4)  

  • Yahoo emails display sender, subject and body in email listing

    The past couple of days my yahoo mail displays subject and as much of the body that space allows. The folders are all messed up. The whole screen is a mess. Nothing like it used to be. It works fine in IE.

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Command+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"

Maybe you are looking for