Urgent How do I add Wsse:Security  soap:mustUnderstand="1" in SOAP Document

Hi All,
I am trying to consume external web service with WS Security. How do I add the below nodes to my SOAPDOC?
<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
Can anyone help in this regard?
Thanks!
Pradeep
[email protected]

try following
&Sdoc = CreateSOAPDoc();
&Sdoc.AddEnvelope(0);
&Sdoc.AddHeader();
&Sdoc.AddBody();
&Sdoc.AddMethod("someelement", 1);
&MethodNode = &Sdoc.MethodNode;
&textNode = &MethodNode.AddText("12345");
&HdrNode = &Sdoc.HeaderNode;
&HdrAttribute = &HdrNode.AddAttribute("xmlns:soapenv", "http://schemas.xmlsoap.org/soap/envelope/");
&WsseNode = &HdrNode.AddElement("wsse:Security");
&WsseAttribute = &WsseNode.AddAttribute("soap:mustUnderstand", "1");
&WsseAttribute = &WsseNode.AddAttribute("xmlns:soap", "http://schemas.xmlsoap.org/wsdl/soap/");
&WsseAttribute = &WsseNode.AddAttribute("xmlns:wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd");
&strxml = &Sdoc.XmlDoc.GenFormattedXmlString();
&MYFILE = GetFile("c:\temp\test.xml", "N", %FilePath_Absolute);
If &MYFILE.IsOpen Then
   &MYFILE.WriteLine(&strxml);
   &MYFILE.Close();
End-If;content c:\temp\test.xml:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <someelement>12345</someelement>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Similar Messages

  • SOAP element wsse:Security with mustUnderstand="1"(SBL-EAI-08000)

    Attempting to access Siebel (CRM On Demand) web service using Weblogic web service data control in JDeveloper, set web service security policy to "oracle/wss_username_token_client_policy", receiving the following error:
    The Web Service call failed. The service returned a SOAP fault with the message: [SOAP-ENV:MustUnderstand] Unable to process SOAP Header child element 'wsse:Security' with 'mustUnderstand="1"'(SBL-EAI-08000)
    How can I set mustUnderstand="0" in the SOAP request? (I cannot change the web service to accept mustUnderstand="1")
    Thanks!
    Edited by: user507901 on Dec 12, 2009 2:09 PM

    I am experiencing the exact same problem. From my research, it appears that the problem has to do with the namespace and WS-Security version compatibility.
    Here's some related information:
    wsse security property in partnerLinkBinding not work in 10.1.3.4 MLR3
    Re: Exception with security-enabled web service proxy
    Similar problems when connecting from Microsoft to Siebel:
    http://social.msdn.microsoft.com/Forums/en/wcf/thread/cc48f572-7082-40d1-9b6b-dcdc7223bc85
    (google cache of information that is very relevant)
    http://74.125.47.132/search?q=cache:v9gAA2zDcqgJ:soa-howto.blogspot.com/2008/04/invoking-ws-security-compliant-web.html+siebel+ws-security+oasis+2004&cd=9&hl=en&ct=clnk&gl=us&client=firefox-a
    http://74.125.47.132/search?q=cache:nIe07-zdum0J:soasol.blogspot.com/2009/06/missing-in-soap-header-when-calling.html+wsseOASIS2004Compliant&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
    Documentation from SOA Suite 10g. Search for "wsseOASIS2004Compliant":
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982.pdf
    I've tried a number of different ways to set the "wsseOASIS2004Compliant" property to "false" for my partner link, but it simply has no effect in 11g.
    Edited by: user12107520 on Dec 15, 2009 10:36 AM

  • HT5312 how can i add a secure email address to my account if i don't know the answers to my security questions?

    how can i add a secure email address to my account if i don't know the answers to my security questions?

    I don't know either! I NEED HELP CAUSE I PUT MONEY INTO IT and they ask for my SECURITY QUESTION ANSWERS! When I try to change my security questions, which i forgot, they askk me for the ANSWERS TO MY SECURITY QUESTIONS!!!!!!!!!! I CAN"T DO IT IF I DON"T KNOW IT!

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • How do i add or delete information from an existing pdf document?

    How do I add or delete information from an existing pdf document??

    The free Reader has no editing capabilities.

  • How do I add a password to a FormsCentral PDF file/document?

    How do I add a password to a FormsCentral PDF file/document?

    Hi,
    I am moving your posting at Acrobat.com to FormsCentral Forum.
    Thank you.
    Hisami

  • How can I add a security password to an Airport extended network?

    I have an Airport Extreme network extended with an Airport Express and an older Airport Extreme.  Everything works fine as is.  I want to add a security password to the network but when I do, the two extending base stations appear in Airport Utility with an alert triangle next to them and when I select each of them, it asks if I want to "foget" that device.  I do not want to forget those devices as they are extending the range of the network, I just want a password on the entire network for privacy.  How do I accopliish this while still maintaining the extended network?

    Conversely, set the security feature for each of the extending base stations first, then set the security for the main base sation.  The extending base stations will go offline. Then back on once the main base station is configured with the same password as the two extenders.
    (Found this on an older post about the same issue.)

  • Very Urgent (How can i add fade in and fade out Action)

    Hi, How can i add fade in and fade out action on the JButton when the mouse is over the button.its mean that when the mouse is over the button then the button's Label is fade in and out.
    plz give code example
    thanks

    If you want to fade in and out anything, you should look at the Composite interface. A Composite is part of a Graphics2D object. You should be able to gradually change this on the button, but maybe within a different thread?

  • HT202879 How do I add/revise headers & footers on Numbers 3.2 documents?

    How do I add/revise headers &/or footers on Numbers 3.2 docs?

    Select File > Print to display the Print Setup pane.  Place your mouse over the spreadsheet page and the header and footer sections will be displayed.  To edit the header or footer, click the header or footer fields, then type your text. You can change how the text looks in the Text pane. Each sheet in your spreadsheet has its own header and footer.
    To add a smart field to your header or footer, click a header or footer field, then choose Insert > Page Number, Page Count, or Date & Time (from the menu at the top of your computer screen).

  • How do I add a securable to a database role?

    I have a database where the stored procedures used by SSRS reports have to be added as securables to the db_execproc database role.
    Easy enough to do with SSMS but despite much searching, I can't see how to script that. With the Database Role Properties open, the securables page selected and one of the securable stored procedures select including the Explicit Execute Grant, I tried clicking
    the Script button at the top of that dialogue. It tells me no action to script. What's the point of that button then, if it won't script that for me?
    Yeah, bad practice to do it that way but I don't have the authority to change things so best thing in the circumstances is to code it.
    Nick Ryan SQL Server Developer OnePath (NZ) Ltd

    The script button will produce a script only if you made any changes - i.e., if you were to click the OK button on the Properties dialog that would have applied some changes to the existing properties. 
    In any case, if you want to grant execute privilege to a stored proc, the script would be
    use [YourDBName]
    GO
    GRANT EXECUTE ON [dbo].[YourStoredProc] TO [YourRollName]
    GO

  • Urgent: how can I add gmail via microsoft exchange?

    Dear friends,
    Please help to instruc me how to add gmail via Microsoft Exchange in system Mountain lion.
    I already fill in all info probaly, but it does not work, keeps showing "the exchange server ...... is not responding." please help, thanks so mcuh.

    All.  I too was hoping that I could set up osx mail using exchange so it is a real shame it doesn't work the same as iOS even in Mountain Lion and still not in 10.8.2 where some more platform unification updates where made but then if it is Google that have to supply the server / make available....
    Anyway, My primary reason for wanting to do this was contact sync.  However, I now have contacts synced with OSX contacts following another thread you can search for.  It was as simple as going into preferences accounts in the contacts app and setting up the google account.  The same as selecting the default google type account in mail instead of exchange.
    If mail is open, even minimised you will get mail notifications even using IMAP in the new OSX notification centre.  And with contacts google account set up you will see another sync icon next to the time capsule icon.
    So now all is working on OSX.

  • How do I add a secure site to my bookmark toolbar?

    Sites are showing grey lock and they won't move to tool bar. This worked on previous versions of FIREFOX before my drive crashed and I had to reload to FIREFOX 25.

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the menu bar)
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How can I add an audio media file to my Pages document

    I have created a Pages document on my iPad.  I can add photos but not audio (there is only a Photos option)  So I emailed the document to my desktop and went onto iCloud via Safari.  Now i don't see the Media icon (I am in Pages beta if this is relevant).  Any suggestions?

    I knew about the comment possibility, but as you have said...users would need instruction.  This is intended for a controlled environment where I know that everyone will have a device with a microphone.  However, the users of the form would have very little experience as this is meant for patients.

  • How do I add metadata to a PDF to specify the document's natural language?

    I have a PDF which isn't in US English. Can I add metadata to the document to say what language it is in?
    Is there a standard way of doing this?
    I see I can add Name:Value pairs to Custom Properties in Reader. Is that the right way of going about it? If so, what Name do I use?

    Are you sure you can add custom metadata properties? I'm surprised to hear that, because Reader is not usually capable to editing PDF files in such a way at all, and I wasn't able to insert such properties in Reader XI, even with the Extended Reader Rights applied to a file...

  • How do I add a table of contents to a PDF document created through iBooks?

    I've been working on a iBook for a while for work and it functions great on an iPad. However, when I publish it as a PDF there is no table of contents. Is there a way to have the table of contents displayed automatically for the book? I dont mind if it's just a table of contents list like in a Word document, but the PDF file is very difficult if it's over 800 pages with no table of contents.

    Update on what I did:
    So instead of having an automatically generated template, I created a table of contents for each section on the chapter title slide. This table has 3 columns, Section, Topic and Page and then I use that as a reference guide for users who only use the PDF version of the document. There is no way to have interactive reference links in table elements in iBook but it suits the purpose well.

Maybe you are looking for