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?

Similar Messages

  • 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

  • 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]

  • 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.

  • 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?

  • 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

  • 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..

  • 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.

  • 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?

  • 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

  • Gap between header and body

    Page:
    www.megamarketingtools.com/problem.html
    That small gap (looks like a black line) is driving me crazy.
    I searched these forums but the suggestions I found didn't
    do anything for me.
    Help, please.
    Thank you.

    bffinn wrote:
    Page:
    www.megamarketingtools.com/problem.html
    That small gap (looks like a black line) is driving me crazy.
    I searched these forums but the suggestions I found didn't
    do anything for me.
    Help, please.
    Thank you.
    Your code is screwed up. Try the amended version below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>MegaMarketing One Time Offer</title>
    <link href="scripts/ototemp/Template8/Blue/style.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css"> 
    <!-- 
    .copywrite { font-size: x-small; } 
    .moretext { font-size: 12px; } 
    --> 
    </style> 
    <link href="otostyle.css" rel="stylesheet" type="text/css" /> 
    </head> 
    <body> 
    <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> 
      <tr> 
      <td width="750" height="270" valign="bottom" background="scripts/ototemp/Template8/Blue/images/header.jpg" border="0"> </td>   
    </tr> 
      <tr> 
        <td align="left" valign="top" background="scripts/ototemp/Template8/Blue/images/page-inside-bg.jpg"> </td> 
        </tr> 
    </table> 
    </body> 
    </html>

  • 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)  

  • XML Document Header

    I have created an XML document from scratch using the XmlBeans libraries and sent
    it to a file. This Xml file has the root node and all of its containing elements.
    But what is missing is the XML document header and my namespace definitions.
    Since I don't have the namespace definitions in the document header, the name
    spaces are redefined with the xmlns:xxx attrbute for each element in the XML file.
    This provides a lot of extra text in the document that is not required.
    What do I use in order to create the XML document header? Also how can I add
    the namespace definitions to the root element instead of them being defined for
    each element in the file? Looking at the documentation, it looked like I might
    need to sue the XmlDocumentProperties class but I'm not sure if this is it or
    if I need to use other classes too?
    Jerald

    This worked great. Thanks!
    One thing I found through trial and error is that I had to wait until my document
    was created, then I created a XmlCursor from my root node. After that I had to
    advance my XmlCursor to the first child element (rootCursor.toFirstChildElement())
    before actually adding my namespace definitions. Otherwise the namespace definitions
    were being added as an additional tag before my root element. But this was documented
    in the insertNamespace() member function (inserts into element before cursor).
    Thanks again.
    Jerald
    "Eric Vasilik" <[email protected]> wrote:
    >
    If you get an InputStream from am XMlBean, it will include the xml decl.
    Obtaining
    any character based stream will not. Basically, the xml declaration
    is generated
    when the XmlBean converts to bytes, but not when converted to chars.
    You can control the use of namespaces by inserting namespaces on the
    root element.
    I'm not sure what the current bits are on the website, but there should/will
    be a method on the XmlCursor called insertNamespace which you can use
    to insert
    a prefix/namespace (xmlns:prefix="namespace") as an attribute. The saver
    will
    use these attributes when persisting the store.
    "Jerald Pratt" <[email protected]> wrote:
    I have created an XML document from scratch using the XmlBeans libraries
    and sent
    it to a file. This Xml file has the root node and all of its containing
    elements.
    But what is missing is the XML document header and my namespace definitions.
    Since I don't have the namespace definitions in the document header,
    the name
    spaces are redefined with the xmlns:xxx attrbute for each element in
    the XML file.
    This provides a lot of extra text in the document that is not required.
    What do I use in order to create the XML document header? Also howcan
    I add
    the namespace definitions to the root element instead of them beingdefined
    for
    each element in the file? Looking at the documentation, it looked like
    I might
    need to sue the XmlDocumentProperties class but I'm not sure if this
    is it or
    if I need to use other classes too?
    Jerald

  • Test OSB fault with SoapUI return soapenv:Header and soapenv:Body empty

    Hello,
    We have two different projects (pass-thru): PS --> BS, the characteristics of both proxies are:
    -     The call to Business is with “Route to” stage
    -     There are RouteNode Error Handler that finally do “Reply” With Failure
    When we test the project thru SoapUi with the case of use that produces the response: HTTP-500 and Soap Fault, the response is different:
    -     Project 1:
    +<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">+
    +<soapenv:Header/>+
    +<soapenv:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">+
    +<soapenv:Fault>+
    +<faultcode>soapenv:Server.userException</faultcode>+
    +<faultstring>java.rmi.RemoteException: 02 ERROR NO EXISTE ABONADO</faultstring>+
    +<detail>+
    +<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">icmaplicv23.madrid.org</ns1:hostname>+
    +</detail>+
    +</soapenv:Fault>+
    +</soapenv:Body>+
    +</soapenv:Envelope>+
    -     Project 2:
    +<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">+
    +<soapenv:Header/>+
    +<soapenv:Body/>+
    +</soapenv:Envelope>+
    I don´t understand why the behavior is different.
    We read many OTN-Post, even had to upgrade OSB to version 11.1.1.6 that solve patch 8186945.
    Please could you help me understand why the soapenv is empty in the project2?
    Thanks in advance,
    Victor

    I found the answer.
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/consolehelp/proxyactions.html#wp1306518
    I change the "Selected Service Type" on BS to "XML". And now is working!
    Regards,
    Martín
    Edited by: 876766 on Jan 12, 2013 9:09 AM

Maybe you are looking for

  • How to redirect to a custom view in 10g

    Hi All, Getting a bit of a headache on this one. I am migrating from 5.7 to 10g and in the project some emails are generated with a link to a custom view. Also I have a submit button in a jsp that redirects to a view. This was easy then (/servlet/con

  • Unable to confirm alerts

    Hi, I have configures the alertframe work to send messages when ever a message is not processed. I create a mail with a link to the message, and that works just fine. When the next problem arises with the same adapter, I don't get any alerts. When I

  • WebSphere JNDI Lookup by Thin Client

    I have a java program which looks up for a Ejb deployed in a websphere application server installed in a diffrent machine. When I look up I get the following error. Both the JVMs are of the same version. Exception in thread "P=619261:O=0:CT" java.lan

  • How to include Instrument drivers in Lab-view apps builder

    Hi, I am using Labvier 7,1, I have managed to use the Application builder for a simple program, but have problems with a larger program that includes P & P instrument drivers (for GPIB) I can create an installer, but when I try & install it, I get a

  • Phaser 7300Dn duplex printing issue

    I can print duplex from my imac but not my MacBook Pro on a phaser 7300DN. I can print from the MacBook Pro to the phaser I just cannot select two sided printing as it is greyed out. I have reloaded the current drivers from Xerox and still get the sa