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.

Similar Messages

  • Is it possible to create own soap envolpe and body ?

    Hi,
    I developed a web service and deployed it on Web Logic server and Glassfish server.
    But its soap envelope and soap body is different.
    Glassfish Request :
    <?xml version="1.0" encoding="UTF-8"?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
        <S:Header/>
        <S:Body>
            <ns2:getFunctionXML xmlns:ns2="http://webservices.onwardinfosys.com/">
                 <functionName>inotification_pkg_ver4.notifications_count</functionName>
              <parameters>IOS_USER</parameters>
              <appUserName>string</appUserName>     
              <appUserPass>string</appUserPass>
              <deviceCode>string</deviceCode>
            </ns2:getFunctionXML>
        </S:Body>
    </S:Envelope>
    Weblogic Request :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header />
        <env:Body>
        <getFunctionXML xmlns="http://webservices.onwardinfosys.com/">
          <!--Optional:-->
          <functionName xmlns="">INOTIFICATION_PKG_VER4.NOTIFICATIONS_COUNT</functionName>
          <!--Zero or more repetitions:-->
          <parameters xmlns="">IOS_USER</parameters>
          <!--Optional:-->
          <appUserName xmlns="">string</appUserName>
          <!--Optional:-->
          <appUserPass xmlns="">string</appUserPass>
          <!--Optional:-->
          <deviceCode xmlns="">string</deviceCode>
        </getFunctionXML>
      </env:Body>
      </env:Envelope>Is it possible to have only one soap envelope and body even if I am deploying web service to different servers ?
    Regards,
    Ajay Sharma

    Ajay Sharma wrote:
    Is it possible to have only one soap envelope and body even if I am deploying web service to different servers ?Sure, it is just XML and XML is just text; you are free to just generate your own stuff in stead of using the webservices stack provided by your appserver. But you don't want to do that because what you have is just fine.

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

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

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

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

  • How to get SAMl assertion from SOAP Header and propagate user context to BW

    Hello to all,
    we implemented this scenario:
    3rdparty System to SAP PI 7.11 to SAP BW.
    sync. communication via SOAP Sender adapter and Receiver XI PROXY.
    We get a SAMl assertion in the SOAP Header from the 3rd-Party System.
    The SAP BW System could not read the Header information.
    How can we get the information of the SOAP Header in the PI System and send the usercontext via XI Proxy to the SAP BW system?
    Can we read the Header information in the SOAP adapter and mapping it to another field in the payload or Headerinformation which could read in the backend system in the proxy class?
    Thanks for your help and regards
    Martin

    Dear Fox,
    Thanks for your reply.
    Is it mandatory to have the Header elements and the message defined in the Mediator wsdl?
    At present I have not defined it in the WSDL.
    Thanks,
    Subin

  • 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

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

  • Regarding JSESSION in SOAP Header and in URL

    Hi All,
    Is the statement xmlhttp.setRequestHeader("Cookie", "JSESSIONID=" + JSESSIONID); sufficient to make integration requests after sso log in? JSESSIONID is a vairable in javascript. I extracted the cookie value by using the getRequestHeader("Set-Cookie") statement.
    I have been trying the other way, putting jsession in URL. I tried to use encodeURI() function of javascript to encode the cookie value. I have put the encoded value in the url.
    I was not able to make integration requests. status value was 500. Following is the responseText.
    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server</faultstring><detail><ErrorCode>SBL-ODU-01006</ErrorCode><ErrorMessage>Internal Error: Session is not available. Aborting.</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>
    Regards
    Naren

    Hi,
    There were few errors in my script. I was able to rectify them and got them solved. If you can tell me what you are trying to do .. I might be able to help you ..
    Regards
    Naren
    Edited by: 812488 on Feb 11, 2011 11:14 PM

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

Maybe you are looking for