Help! SOAP Header problem

Hi, I want to create a SOAP Header like below
<soap:Header>
<token xmlns="http://xxx.yyy.zzz/aaa/bbb">
<sessionId>123456789</sessionId>
</token>
</soap:Header>
I created a java class for token object but i dont know what to do next
i am new to webservices, so how can I create such a header?
A sample java code would be great...
Thanks...

This may help...
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/soapheader/index.html

Similar Messages

  • SOAP Header problem SAAJ

    Hello,
    I am using SAAJ to send a SOAP message that needs to be exactly in a certain format. I have managed to get quite close yet there are a few things that I am unable to get working with SAAJ. Would be great if somebody on the forum can help out. I have simplified my real life example so that others could try out the code and hopefully come up with a solution.
    The SOAP message I need to send is in the form:
    <SOAP:Envelope xmlns:SOAP="urn:schemas-xmlsoap-org:soap.v1">
    <SOAP:Header>
    <Head1>H1</Head1>
    </SOAP:Header>
    <SOAP:Body>
    <Body1>B1</Body1>
    </SOAP:Body>
    </SOAP:Envelope>
    However I tried many things and the best I could do with SAAJ is:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <DontWantThisPrefix:Head1 xmlns:DontWantThisPrefix="DontWantThis">
    H1
    </DontWantThisPrefix:Head1>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <Body1>
    B1
    </Body1>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    So the things that change between expected and actual are:
    1) SOAP-ENV: The tag name is SOAP-ENV instead of SOAP
    2) SAAJ forces me to have a prefix and namespace to all header tags. So I could not create the expected tag within the SOAP header. I wish to get rid of DontWantThisPrefix and DontWantThis from the header tag Head1.
    The Java Code that generates the above output is as follows:
    import java.io.*;
    import javax.xml.soap.*;
    import javax.xml.transform.stream.*;
    public class SAAJTrial {
    public static void main(String[] args) throws Exception {
    SOAPConnection connection = SOAPConnectionFactory.newInstance()
    .createConnection();
    SOAPMessage message = MessageFactory.newInstance().createMessage();
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPHeader header = message.getSOAPHeader();
    SOAPHeaderElement headEle = header.addHeaderElement(envelope.createName(
    "Head1", "DontWantThisPrefix", "DontWantThis"));
    headEle.addTextNode("H1");
    SOAPBody body = envelope.getBody();
    SOAPElement postAdvert = body.addChildElement("Body1").addTextNode("B1");
    message.saveChanges();
    message.writeTo(System.out);
    connection.close();
    Is there any way by which I can send the expected SOAP message ???????
    Kindly get back asap.
    thanks,
    harshad

    Again may I recommend one of the most wonderful tools on the internet that I have found so far.
    http://soapclient.com/soaptest.html
    you will need a WSDL document to use it, but it is well worth it.
    Have fun my friend.

  • SOAP header problem

    I have just started looking into Oracle BPM, and have come across a problem, to which I can't find an answer in this forum or elsewhere on the net.
    I have created a very simple process with one automatic activity which should just call a web service and return the result.
    We use custom SOAP headers in our services, but the WSDL import in BPM Studio has recognized the header definitions and generated the corresponding types.
    However, when I attempt to call the service, I get an error because of some invalid header attributes added by the BPM web service client.
    I use this code to set up the service:
    kontaktSvc as Nykredit.Kontakt.KontaktService = Nykredit.Kontakt.KontaktService(wsConfig)
    requestorIdentity as Nykredit.Kontakt.RequestorIdentityType
    requestorIdentity.tagName = "RequestorIdentity"
    requestorIdentity.requestUID = "qwerty"
    requestorIdentity.requestTime = Time()
    logMessage "RequestorIdentity: " + generateXmlFor(requestorIdentity)
    kontaktSvc.requestHeaders[] = requestorIdentity
    The logMessage statement tells me, that the RequestorIdentity header is OK:
    RequestorIdentity: <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:RequestorIdentity xmlns:ns1="http://technical.schemas.nykreditnet.net/header/requestoridentity/v1" >
         <ns1:RequestUID>qwerty</ns1:RequestUID>
         <ns1:RequestTime>2010-01-22T11:54:13.352000+01:00</ns1:RequestTime>
    </ns1:RequestorIdentity>
    However, my service fails because of some header attributes, that do not show up in the logMessage.
    The SOAP request which is received by the service looks like this:
    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
    <ns1:RequestorIdentity
    mustUnderstand="0"
    actor="http://schemas.xmlsoap.org/soap/actor/next"
    xmlns:ns1="http://technical.schemas.nykreditnet.net/header/requestoridentity/v1" >
         <ns1:RequestUID>qwerty</ns1:RequestUID>
         <ns1:RequestTime>2010-01-22T11:54:13.352000+01:00</ns1:RequestTime>
    </ns1:RequestorIdentity>
    </soapenv:Envelope>
    As you can see, the BPM web service client implementation has added the 'mustUnderstand' and 'actor' attributes, but they have no namespace prefix, which makes the request invalid.
    Obviously, the header attributes should be prefixed with the 'soapenv:' namespace prefix to be valid.
    Now the question is: Is this a bug or am I doing something wrong here?
    I really hope you can help me, since this is quite a showstopper right now...
    TIA
    /\/\orten

    Hi Stephen
    I am Peters colleague who patched the old Axis library.
    I checked out the cource code for Axis version 1.2.1 from http://svn.apache.org/viewvc/webservices/axis/branches/AXIS_1_2_1_FINAL/java/
    Then I commented out some of the contents of org.apache.axis.message.SOAPHeaderElement.outputImpl() from line 225 to 245.
    Finally I built the whole thing using the supplied build.xml.
    The effect of the patch is, that the ‘actor’ and ‘mustUnderstand’ attributes are never generated, so the patch will not work if these attributes are actually needed.
    Since we don’t use the attributes, it works fine for us.
    The proper fix of course, would be to assign the right namespace prefix to the attributes.
    /\/\orten

  • Need help with header problem

    I'm designing a webpage and I'm having a bit of a problem with the float drop issue for IE6 and IE7. Everything is fine in FF and IE8. The nav portion wants to drop. I've set up the wrapper and it still doesn't seem to fix the problem. Can anybody point out where in the code is the problem and how to fix this.
    CSS
    @charset "utf-8";
    /* CSS Document */
    body {
        margin: 0px;
        padding: 0px;
    #header-container {
        width: 100%;
        height: 204px;
        background-color: #0071b2;
    #header {
        background-image: url(header.png);
        background-repeat: no-repeat;
        width: 1024px;
        height: 204px;
        margin: auto;
    #logo{
        float: left;
        padding-top: 15px;
        padding-left: 250px;
    #slogan {
        float: right;
        padding-right: 170px;
        padding-top: 35px;
    img {
        border: none;
    #nav {
        height: 76px;
        width: 1024px;
        padding-top: 162px;
        padding-left: 48px;
    #nav ul
        text-align: left;
        margin: auto;
        width: 1024px;
    #nav ul li
        display: inline;
        padding: 0px;
        margin: 0px;
    #footer {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 0px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
        background-color: #999;
    #wrapper {
        width: 100%;
        height: 250px;
    #mainContent {
        padding-left: 260px;
    HTML
    <!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" />
    <link rel="stylesheet" href="style.css" type="text/css">
    <title>The Country Store - Home</title>
    </head>
    <body>
    <div id="wrapper">
        <div id="header-container">
            <div id="header">
                <div id="logo">
          <img src="logo.png" />
          </div>
                <div id="nav">
                <ul>
                    <li><a href="#"><img src="home.png" alt="home" /></a></li>
                    <li><a href="#"><img src="aboutus.png" alt="about" /></a></li>
                    <li><a href="#"><img src="contactus.png" alt="services" /></a></li>
                    <li><a href="#"><img src="products.png" alt="products" /></a></li>
                    <li><a href="#"><img src="employees.png" alt="employees" /></a></li>
                </ul>
                </div>
            </div>
        </div>
        </div>
        <div id="mainContent">
        <h1> Main Content </h1>
        <p>under main content    </p>
        <h2>sub main heading</h2>
        <p>sub main heading content</p>
        </div>
        <!-- end #mainContent -->
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <!-- end #container -->
    <div id="footer">
        <p>copyright</p>
      <!-- end #footer --></div>
    </body>
    </html>

    Didn't work Martin. Still says float drop problem.
    Dreamweaver is saying the problem is here
    <div id="nav">
                <ul>
                    <li><a href="#"><img src="home.png" alt="home" /></a></li>
                    <li><a href="#"><img src="aboutus.png" alt="about" /></a></li>
                    <li><a href="#"><img src="contactus.png" alt="services" /></a></li>
                    <li><a href="#"><img src="products.png" alt="products" /></a></li>
                    <li><a href="#"><img src="employees.png" alt="employees" /></a></li>
                </ul>
                </div>
    Under my css rule I did change the top padding for the #nav to get it to line up where i needed it to for my header image. I did change the wrapper to extend past this to hopefully fix the problem.
    Here is a link to what is up so far
    http://digitsama.webs.com/index.html

  • How to add security credentials to SOAP header for EBS Web Service call..

    All,
    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. Anyone on this forum know how to set up the SOAP to call with the correct credentials? I have been looking at the documentation but it is not clearly explained.

    Dear Heiko,
    did you solve this problem?
    We are facing the same problem. Every parameter that requries "cmd" does not work. I guess we don´t use this paramter the right way.
    Best, Chris

  • OSB process WS-security header problem! Pls help

    Hi All
    We have protected all our osb proxy services with username token policy. The problem we are facing is that in some of the proxy services we want this header to be available within the message flow (for auditing purposes) but the process WS-security header option when selected removes this header before it enters the message flow.
    If we untick this option, it does not authenticate the incoming soap request and proxy services is invoked even if wrong or no credentials are supplied.
    Is there a way we can select this option for authentication and still have the username token intact within the soap header in the message flow. please help. Thanks

    Please check the content of $inbound at runtime (with process WS-security header option enabled). You may get all the information for auditing purpose from that variable.
    Regards,
    Anuj

  • SOAP Receiver - HTTP header problem

    Hi,
    Scenario: IDOC - - XI - - SOAP(webservice).
    Third party is asking for missing "/" (path?) in header after "POST". Following is the message received by third party. How to override this header to put "/" after POST? Please help.
    POST  HTTP/1.0
    Accept: /
    Host: 100.10.2.5:9092
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    Authorization: Basic Z2hydHNvYXA6bm92ZWxs
    content-id: <soap-48E034BD9F5B3308E1000000876CF529@sapcom>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 313
    SOAPACTION: "#batchRequest"
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
        <SOAP:Header/>
        <SOAP:Body>
            <ns0:cvgtransaction xmlns:ns0='http://abc.com/xi/Novell' event='modify' workforceID='1' type='employee'>
                <attribute name='WWID' operation='replace'>1234567</attribute>
            </ns0:cvgtransaction>
        </SOAP:Body>
    </SOAP:Envelope>

    Hi!
    with XI standard tools you have no chance to manipulate the soap envelope created by the XI. You have to configure your soap receiver communication channel to not create a soap envelope "Do not use SOAP envelope") and then you use e.g. a XSLT mapping to create a soap envelope by yourself.
    Regards,
    Volker

  • Help please! - Hard disk Volume Header problems and 'Beach Ball' hangs

    Hi all
    I was wondering if anyone can help me out with my hard drive problems. Until recently, everything was going fine with my Powerbook after upgrading to 10.4.2. Then all of a sudden, one day, at the login screen I got a beach ball hang which lasted around 4 minutes. When the dock is launched, I get another beach ball hang for an additional 3 or 4 minutes.
    When it finally finishes logging in everything is fine, I can access all my files and do whatever I want to do at full speed, that is, until an app asks me for my administrators password which welcomes back the beach ball and a system hang for another 3-4 minutes or so.
    Disk Utility says that I have minor Volume header problems but will not fix it as it abruptly quits before it finishes diagnosing the drive.
    I have Disk Warrior 3.0.3 and have tried to use it but when I boot off the CD it does not recognise my hard drive for fixing puroposes but still displays the hard drive in the Hardware tab.
    The SMART status of the drive is verified and there doesnt seem to be any problems in that respect.
    I have repaired permissions, ran all the processes in Onyx and still no joy.
    Finally, I have tried to use TechTool Pro but on a surface disk check it fails halfway through after shifting a few bad sectors around.
    Everything seems to be fine if you ignore all these beach ball hangs but I'm worried about a very imminent hard drive fail. I am now in the process of zeroing all the empty spaces on my hard disk to see if the badsector problems can be fixed in this way.
    When the beach ball appears I can hear the hard disk making a scraping sound if this helps at all.
    Please help me! Its driving me nuts! I am also currently working abroad hence I don't have my Mac OS X Tiger install disks on me otherwise I'd just do an archive and reinstall.
    Is this a physical problem? Volume header problem? I'm so confused!
    Any help greatly appreciated! Many thanks...

    It sounds as if you've attempted the appropriate fixes for your drive... Disk Utility, Disk Warrior, TechTool Pro and Onyx. If none of these utilities have repaired the problem then perhaps there is a hardware failure of some sort... perhaps a head crash has done some physical damage.
    How old is this hard drive? Is it the original?
    It's unfortunate that you don't have your Tiger install discs as a reinstall of the OS might relieve the problem. But I doubt it since, as you say, "the disc makes a scraping sound". That suggests to me the problem may be physical damage or wear of the hard drive.
    If I were in your shoes, I would backup any critical files now, before the drive fails completely.
    I'd replace the drive, and probably buy an external enclosure (USB or Firewire) for the old drive to allow for data retrieval until it failed.
    Unfortunately, replacing the drive will require your software install discs... =( ... can't help you there.
    TiBook G4 1G, PMac G4 dual 1G, MacPlus   Mac OS X (10.4.4)  

  • Processing soap header in ejb, help me !!!

    Could anyone tell me how can i get the soap header information in ejb to process? I have implement the headercallback in the implementation bean and add the processheader method, but when i invoke the ejb method through proxy, the exception like "you must implement headercallback.." arise. Did i leave any step undone? Thank you very much!

    netbeans.org has a lot of resources on developing EJB. Just search at netbeans.org upper-right corner:
    http://www.netbeans.org/
    One of them is a 30-min tutorial:
    http://www.netbeans.org/kb/55/ejb30.html
    You can also read JavaEE Tutorial, especially the chapter Get Started with EJB:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    -cheng

  • Extract SOAP Header from JMS Adapter PartnerLink

    Hi Chintan,
    I have next problem:
    I have a JMS queue. The message in this queue are "SOAP Message" with Body and SOAP Header.
    I have developed a "BPEL JMS service" with a JMS Adapter PartnerLink.I need extract SOAP Header from PartnetLink JMS Adapter, but with headerVariable into "Receive activity" it´s not work OK.
    Could anybody help me with this problems?
    Thanks a lot.
    Regards.

    HI,
    Try your luck at this link
    http://orasoa.blogspot.com/2007/09/using-custom-headers-in-bpel.html

  • Mail-Adapter Integration Engine Error during parsing of SOAP header

    Hello,
    we use XI with the mail adapter. Most of the messages are processed correctly. But sometimes I get following errors in the J2EE-logviewer:
    Transmitting the message to endpoint http://<xi-host>:<http-port>/sap/xi/engine
    ?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.a
    pi.RecoverableException: Received HTTP response code 500 : Error during
    parsing of SOAP header.
    Failed to transmit message 4e913640-4cc5-11dc-8560-00e000c55366(OUTBOUND)
    due to com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP
    response code 500 : Error during parsing of SOAP header.
    Retries exceded, set message
    4e913640-4cc5-11dc-8560-00e000c55366(OUTBOUND) to status NON_DELIVERED.
    Has somebody else the same problem and solved it or any idea what the matter could be?
    Thanks for your help
    Christian

    Hi Reddy,
    We´ve got the following scenario:
    Exchange-Server (is always up)
    XI Mail-ReceiverAdapter
    I use IMAP4 to access the Outlook-Email-Box
    Everything works fine. But some Emails aren´t processed.
    I think it´s a problem between adapterframework and the integration engine?
    There is no difference between the emails?
    If you´ll need further informations ask me?
    Thanks

  • HTTP response code 500 : Error during parsing of SOAP header

    Hi Experts,
    I have a MAIL to IDOC scenario.  An external third party emails invoices to our inbox - which we pick up and process the attachment.  All is well when I test the scenario internally, but when the third party emails it fails with (see ERROR MESSAGE below).
    When I look at the SOAP header of the failed message I see the values from the dump in this field:
      <sap:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTHREAD-INDEX">AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=</sap:Record>
    Can anyone tell me what SHeaderTHREAD-INDEX does?  Or what my problem is  (Our email is Outlook)
    ERROR MESSAGE.........
    SOAPFault received from Integration Server. ErrorCode/Category: XIProtocol/WRONG_VALUE; Params: SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14), AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=協彎䅍䔾ਉ़䥎噏䥃䕟乏㸸㌱ㄵㄹ㰯䥎噏䥃䕟乏㸊उ㱁䵏啎呟䕘䍌彖䅔㸷⸵〼⽁䵏啎呟䕘䍌彖䅔㸊उ㱃啒剅乃失㹅啒㰯䍕剒䕎䍙ㄾਉ़䅍何乔彖䅔㸱⸴㜼⽁ꯃ䅢坡汫, ST: ST_XM; AdditionalText: An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC; ApplicationFaultMessage:  ; ErrorStack: XML tag SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14) (or one of the attributes) has the incorrect value AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQ An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC Data loss occurred when converting AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1p
    Transmitting the message to endpoint http://sdcxp1-ci.na.fmo.com:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Error during parsing of SOAP header.

    We work with Microsoft Outlook, but I'm sure this could work with any email system.
    This error only came from external emails - what we did in the end is to get the third party to email a particular email (email1) in our company.  This is set up as a regular email account.  On this email put a forward rule to email2 for a particular sender/subject.  email2 is set up as POP3 so that XD1 can poll it - we also block any emails except from email1.
    Doing this accomplishes a couple of things:
    1)  We get around the error because XI polls email2 (which has adapter settings of IMAP4 so we can see MAIL adapter attributes ie. sender, subject etc...When we originally had as POP3 we were not able to see these - but setting as IMAP4 causes the error for external emailers)
    2) We have a SPAM filter - the XI email is clean from SPAM and the adapter will not have errors, as it only receives valid emails to process
    3) We have a central email (email1) which is used to archive all XI emails - we use this for all email scenarios (as we also save to folder and forward in the rule)
    Hope this helps your situation.

  • Dynamic Receiver Determination using Soap header

    Hi ,
       I am trying to use a field in SOAP Header to determine the receivers dynamically.
    1, Using XPATH gives me only values in the Payload and not the SOAP header. Is it possible to pull the value from the SOAP header to the payload and then do dynamic receiver determination.
    2. Using Context Object is it possible to transfer the value of the field in SOAP header to variable header Xheadername1 and then use it to determine the receiver. I am having problems in passing the value of the field in soap header to XHeadername1.
    Any help is appreciated and points will be awarded.
    Joe Vellaiparambil

    Hi Joe,
    This is a good blog by William, hope this is helpful.
    /people/william.li/blog/2009/07/30/how-to-read-soap-header-information
    Let us know if you need more information.
    Regards,
    Neetesh

  • Overriding Soap Header using Axis(SOAP) Receiver

    Hi Experts,
    I am having a problem in including the SOAP Header in the XML using the SOAP Axis Receiver Adapter. Well I am not sure on how to place this structure in the header:
    <SoapHeader>
        <Header1>
            <child1>
            <child2>
        </Header1>
        <Header2>
            <child1>
            <child2>
        </Header2>
    </SoapHeader
    I have already tried overriding the SOAP Header via Java Mapping but it is not working when I send it to the third-party. I believe this header should be directly encoded using the axis module, but I can only find examples for simple headers and not nested ones...
    Please help.
    Edited by: Mark Dihiansan on Sep 7, 2010 5:15 PM

    Hi,
    you simply place your header template in the handler configuration. If you need to set some values of the header dynamically, you can pass each value in the dynamic configuration header. The axis handler will fill the header with the supplied values.
    The Axis Note 1039369 describes a few header insertion examples that you should look at.
    regards, yza

  • SOAP Header Security in Oracle Service Bus

    Currently we are in the process of implementing the SOAP Header Security through Oracle Service Bus. We have a requirement that BPEL need to call a external web service. That web service will be registered in OSB. While making the call, the OSB need to add the SOAP security header(user name & Pwd) in proxy service before forwarding the request to business service. Can you please help me find some information about that.

    Hi Manoj,
    The request payload which is going to the target is
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <soapenv:Body>
    <man:GetDefaultRechargeValuesRequest xmlns:man="http://www.NII.com/ManagePrepaidRecharge/workflow/ManagePrepaidRecharge">string</man:GetDefaultRechargeValuesRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    whereas the target expects the soap header populated. the payload expected by the target is
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <gsa:Authentication xmlns:gsa="http://www.nextel.com.br/Wbs/Gsa">
    <gsa:Account>test</gsa:Account>
    <gsa:Password>test</gsa:Password>
    <gsa:Guid>f65748e63b01</gsa:Guid>
    </gsa:Authentication>
    </soap:Header>
    <soapenv:Body>
    <man:GetDefaultRechargeValuesRequest xmlns:man="http://www.NII.com/ManagePrepaidRecharge/workflow/ManagePrepaidRecharge">string</man:GetDefaultRechargeValuesRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    The Problem now is, when i call a business service(WSDL of the target) from a proxy service and when i set the above expression to the $header using replace action in the proxy service itself, the above expression,instead of going as a request to the business service, it is populated in the response.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <gsa:Authentication xmlns:gsa="http://www.nextel.com.br/Wbs/Gsa">
    <gsa:Account>test</gsa:Account>
    <gsa:Password>test</gsa:Password>
    <gsa:Guid>f65748e63b01</gsa:Guid>
    </gsa:Authentication>
    </soap:Header>
    <soapenv:Body>
    <ns0:GetDefaultRechargeValuesResponse xmlns:ns0="http://www.NII.com/ManagePrepaidRecharge/workflow/ManagePrepaidRecharge">
    <ns0:StandardHeaderBlock>
    <ns2:ServiceState xmlns:ns2="http://xmlns.oracle.com/apps/StandardHeaderBlock">
    <ns2:errorCode>SOA_ERR_TARGET_SYSTEM_FAILURE</ns2:errorCode>
    <ns2:errorDesc>
    OSB Service Callout action received an error response
    </ns2:errorDesc>
    </ns2:ServiceState>
    </ns0:StandardHeaderBlock>
    </ns0:GetDefaultRechargeValuesResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    Since the authentication details are not reaching the target, it is giving a target system failure. Can you suggest a remedy to this please.

Maybe you are looking for

  • How to get all minimum values for a table of unique records?

    I need to get the list of minimum value records for a table which has the below structure and data create table emp (name varchar2(50),org varchar2(50),desig varchar2(50),salary number(10),year number(10)); insert into emp (name,org,desig,salary,year

  • How to create long text in production order?

    Hi, i have found that i could only change long text in the production order by 'SAVE_TEXT'. but i want to create long text and any advice?

  • Error with Provider Hosted App on Edit Form of a list item

    We have an error on the Edit Form of one of our pages. We have developed a SharePoint Online Provider Hosted app which replaces the standard edit form of a list item and has some further events behind the save button. Since this is rather new territo

  • Can't find oe_main.sql and HR_main.sql

    I have download and installed latest oracle database successfully (version 11g). When I followed instruction to install sample schema, I couldn't find hr.main.sql and oe_main.sql. I only found hr_code.sql in demo/schema/human_resources directory. The

  • Imac 2008 and Thunderbolt

    I have a early 2008 Imac and and external drive/dock (GDock) and hoping to connect the two via thunderbolt to firewire adapter but the drives do not show up? I'm not looking for speed but connectivity, is this possible? I bought the GDock so I could