OWSM - Signing element using XPATH Expression

Hi,
We have a requirement to sign an element within outgoing body of xml message. We are trying to use the policy pipeline to sign.
Signed Content: XPATH
sign XPATH Expression: referencing the element required to be signed.
We get the error: WS-Security process failure:There are no parts of the message to sign
The error message indicates that the XPATH query is not correct. Does anyone know of a source of documentation for this where we can get examples. Tried google, forums...etc with no success. Any help would be really appreciated.
Thanks

Hi,
Managed to sort it, found the following link.
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b31008/toc.htm
Thanks

Similar Messages

  • Using xpath expressions in Document-Builder

    Hi all
    we have re-designed our (existing) DDX-templates with the Document Builder in LC Workbench. The DDX templates are used to assemble PDFs with LC Assembler-Service.
    Now my question: Is it still possible to use XPath-expression in the DDX template? Please find our example below:
    The XPath expression works only if we copy&paste the DDX source code directly to the Assembler-Service property view (picture below). But referring the DDX-template doens't interpret the xpath path at run time (2nd picture below). Any help on that will be appreciated!
    Works (using DDX source code directly):
    Doesn't work (using DDX template):

    Hi,
    >
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    I think any XPath expressions which use [] are not supported in stand alone
    version, but as this is not documented I could be wrong.
    Regards
    Arek

  • Xslt copy-of creates a xml which returns empty while trying to access elements using XPATH

    Hi
    I am trying to do a copy-of function using the XSLT in jdev. This is what I do
        <xsl:param name="appdataDO"/>
        <xsl:template match="/">
        <ns1:applicationData>
          <ns1:applicationId>
            <xsl:value-of select="$appdataDO/ns1:applicationData/ns1:applicationId"/>
          </ns1:applicationId>
          <xsl:copy-of select="/fslo:ExternalapplicationData/fslo:ApplicationsHDRAddInfo">
          </xsl:copy-of>
        </ns1:applicationData>
        </xsl:template>
        </xsl:stylesheet>
    After this I can see the document created in the process flow as this :
        <ns1:applicationData>
        <ns1:applicationId>MMMM</ns1:applicationId>
        <ns2:ApplicationsHDRAddInfo>
        <ns3:genericFromBasePrimitive>iuoui</ns3:genericFromBasePrimitive>
        <ns4:EstimatedMarketValue>77</ns4:EstimatedMarketValue>
        <ns4:PropertyInsuranceFee>jih</ns4:PropertyInsuranceFee>
        <ns4:LoanOriginationFee>hjh</ns4:LoanOriginationFee>
        <ns4:RegistrarFee>kkkkk</ns4:RegistrarFee>
        <ns4:LoanCashInFee>hjh</ns4:LoanCashInFee>
        <ns4:LoanPaidInCashFlag>cddffgd</ns4:LoanPaidInCashFlag>
        </ns2:ApplicationsHDRAddInfo>
        </ns1:applicationData>
    But whenever I am trying to extract any of the output nodes I am getting an empty result. I can copy the whole dataset into similar kind of variable.
    But I am unable to get individual elements using XPATH.
    I tried using exslt function for node set and xslt 2.0 without avail.
    The namespaces might be the culprit here . The test method in the jdev is able to output a result but at runtime the xpath returns empty .
    I have created another transform where I try to copy data from the precious dataobject to a simple string in another data object .
    This is the test sample source xml for the transform created by jdev while testing with all namespaces, where I try to copy the data in a simple string in another data object.
        <applicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/bpmpa/fs/ulo/types file:/C:/JDeveloper/NewAPP/Xfrm/xsd/ApplicationData.xsd" xmlns="http://xmlns.oracle.com/bpmpa/fs/ulo/types">
           <applicationId>applicationId289</applicationId>
           <ApplicationsHDRAddInfo>
              <genericFromBasePrimitive xmlns="http://xmlns.oracle.com/bpm/pa/extn/types/BasePrimitive">genericFromBasePrimitive290</genericFromBasePrimitive>
              <EstimatedMarketValue xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">291</EstimatedMarketValue>
              <PropertyInsuranceFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">PropertyInsuranceFee292</PropertyInsuranceFee>
              <LoanOriginationFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanOriginationFee293</LoanOriginationFee>
              <RegistrarFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">RegistrarFee294</RegistrarFee>
              <LoanCashInFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanCashInFee295</LoanCashInFee>
              <LoanPaidInCashFlag xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanPaidInCashFlag296</LoanPaidInCashFlag>
           </ApplicationsHDRAddInfo>
        </applicationData>
    And the xslt
        <xsl:template match="/">
            <ns1:DefaultOutput>
              <ns1:attribute1>
                <xsl:value-of select="/fslo:applicationData/fslo:ApplicationsHDRAddInfo/custom:LoanOriginationFee"/>
              </ns1:attribute1>
            </ns1:DefaultOutput>
          </xsl:template>
    This results in a empty attribute1. Any help will be appreciated .

    Please delete attributeFormDefault="qualified" elementFormDefault="qualified" from your XSD
    Please check the next link:
    http://www.oraclefromguatemala.com.gt/?p=34

  • Help Page Error: Using XPath expressions as list indexes and map keys

    The help page says for maps to use the XPath expression
    /process_data/mapvar[@id='/process_data/@stringvar']
    But in reality for things to work you have to omit the quotations.

    thanks a lot for your help..
    there are total 162 records in the v$open_cursor for that user.
    among that the open cursor is only 4 and open-recursive cursor is only 6 for that user.
    in my session i am executing only the renaming of the constraints and nothing more.
    When i have queried the v$open_cursor for cursor_type='OPEN' for all the users, then i got that it has exceeded the value of open_cursors parameter.
    So how can i resolve that....

  • Using xpath-expressions inside Task Instructions

    Hi all,
    I have a process where I would like to build up the task Instructions in a string variable. However I cannot seem to resolve xpath values when I am putting my string as the task instruction.
    How can I do this?
    Thanks in advance
    Sincerely
    Kim Christensen

    Hi again Marcel - thanks for your quick reply
    However I am not sure I und erstand your answer correctly.
    I have a string variable (str_Inctructions) that I want to set as my Task Instruction.
    So at a point in my process I create a set value with an expression like this:
    str_Instructions = 'Here are some instructions for {$/process_data/myOtherVar$} please follow them.'
    I then set str_Instructions as the Task Instructions (an xpath-expression). When I get the Task in Workspace I see the {$/process_data/myOthervariable$} instead of the value of myOtherVar.
    So how can I get the value of myOtherVar?

  • Displaying XML using XPath expressions

    Hi. I have a XML file which looks something like this:
    <?xml version="1.0"?>
    <SAQ>
    <question id="1">
    What does UML stand for?
    <answer id="1" correct="yes">
    Unified Modelling Language
    <explanation>
    Explanation
    </explanation>
    </answer>
    <answer id="2" correct="no">
    United Modelling Language
    <explanation>
    Wrong
    </explanation>
    </answer>
    </question>
    I want to just display the Question, not the child Answer and Explantion nodes under it, but when I use:
    <c:set var="temp" value="1" />
    <x:out select="$doc//SAQ//question[@id = $temp]" />
    it displays:
    What does UML stand for? Unified Modelling Language Explanation United Modelling Language Wrong
    How do I just display the parent question node and not its child answer and explanation nodes?
    Thanks!

    use the text() xpath function it should work:
    <x:out select="$doc//SAQ//question[@id = $temp]/text()" />

  • Navigating elements using XPath through SDK

    Hi there,
    Here is my code:
    InterfacePtr<IXMLParserUtils> xmlparse(doc, IID_IXMLPARSERUTILS);
    xmlparse->EvaluateXPathsForElement();
    (I yet to derive parameters.) However my error is:
    error C2039: 'EvaluateXPathsForElement' : is not a member of 'IXMLParserUtils'
    I look at the IXMLParserUtils header file. "EvaluateXPathsForElement" is the member of "IXMLParserUtils".
    I dont know why this strange error.
    Thank in advance.
    Saravanan.K

    You're missing includes and using undeclared variables (e.g. application).
    For the actual arguments, use the typedef rather than copying their basic definition.
    Copy the method prototype from the IXMLParserUtils.h.
    Paste twice.
    virtual bool16 EvaluateXPathsForElement(const K2Vector<WideString>& xPaths, InterfacePtr<IIDXMLElement> rootElement, HitMatches& matches, PrefixToURIMap* prefixMap) const = 0;
    virtual bool16 EvaluateXPathsForElement(const K2Vector<WideString>& xPaths, InterfacePtr<IIDXMLElement> rootElement, HitMatches& matches, PrefixToURIMap* prefixMap) const = 0;
    The first pasting gives a bunch of variables, the second uses them. This is C++ not Java, so most of the time some operators have to go when you turn references to actual storing variables. In the opposite direction, you have to use the address-of operators "&" to pass a variable into a pointer "*" argument.
    bool16 result;
    K2Vector<WideString> xPaths;
    InterfacePtr<IIDXMLElement> rootElement;
    HitMatches matches;
    PrefixToURIMap prefixMap;
    result = EvaluateXPathsForElement(xPaths,rootElement,matches,&prefixMap);
    My changes to your original code:
    K2Vector<WideString> choices;
    InterfacePtr<IIDXMLElement> root_elt ( xmlutils->QueryRootElement(doc) );
    HitMatches hitMatches;
    PrefixToURIMap prefixToURIMap;
    xmlparse->EvaluateXPathsForElement(choices, root_elt, hitMatches,&prefixToURIMap);
    This compiles for me. I did not waste any thoughts on how far your arguments actually make sense beyond that.
    It frequently helps to swap compilers when you encounter such problems. Just recompile in OSX XCode and CodeWarrior if you can't make a sense from VC messages, and vice versa.
    Hth,
    Dirk

  • Using XPath expressions

    Hi,
    Currently, the support for queries in the standalone version of XmlBeans is
    somewhat limited. However, is there a sensible way to query the XML
    directly and then map the results back to XmlObjects? Presumably this is
    what happens at some level anyway. For example, a DOM node could easily be
    obtained from the relevant XmlObject and passed to the selectNodeList()
    method of the org.apache.xpath.XPathAPI class. This would return a
    org.w3c.dom.NodeList object. The question would then be how to map the DOM
    nodes in the NodeList back to the corresponding XmlObjects in the object
    model. Presumably, there wouldn't be any equivalence between the Nodes in
    the NodeList and the Nodes returned by the newDomNode() method in XmlObject?
    Would this also be possible by querying an XmlCursor?
    Steve

    Hi,
    Currently, the support for queries in the standalone version of XmlBeans is
    somewhat limited. However, is there a sensible way to query the XML
    directly and then map the results back to XmlObjects? Presumably this is
    what happens at some level anyway. For example, a DOM node could easily be
    obtained from the relevant XmlObject and passed to the selectNodeList()
    method of the org.apache.xpath.XPathAPI class. This would return a
    org.w3c.dom.NodeList object. The question would then be how to map the DOM
    nodes in the NodeList back to the corresponding XmlObjects in the object
    model. Presumably, there wouldn't be any equivalence between the Nodes in
    the NodeList and the Nodes returned by the newDomNode() method in XmlObject?
    Would this also be possible by querying an XmlCursor?
    Steve

  • Oracle OES: Possible to use XPath wildcards in OES authorization policies?

    Hi,
    I have policies to authorize WS-requests using OES through OWSM.
    In the OES policies I retrieve attributes from the WS-request using XPath expressions.
    When I use namespace in my XPath it all works well:
    NAMESPACE tns=http://myns/
    myAttr //tns:myVal
    But I have several WS-requests that have different namespaces, but that i need to authorize using the same policy, so I would like to use a wildcard for the namespace. But when I try the attribute retriever doesn't find the node value:
    myAttr //*:myVal
    When i use tools to check the XPath, like SoapUI, I am able to get the node value using the expression above.
    Does anyone have experience using XPath wildcards in OES policies?
    -T

    I understand that the LDAP structure design depends on the business goals and requirements and we are defnitely building the schema in that lines. But the thing we want to make sure is how flexible are the products like OIM, OAM and OES to provide user authentication(if the user is deep down in the tree), authorization (if the user needs to be authorized to services having attributes deep down in the tree), mapping complex relationships and permissions in conjunction with OID.
    I think the other way of asking this question would be what we should take into consideration while designing the LDAP structure in OID as the backend LDAP store and what things we should leave whille designing LDAP structure in OID that could be considered while designing the authentication, authorization process in OIM, OAM and OES.
    Our goal is to keep the LDAP structure simple and flexible but at the sametime use OAM, OES and OIM at their best capabilities to serve our purpose without lot of customizations required.
    Thanks!

  • Using XPath for associatios into BPMN process??

    Hello everybody:
    I'm using Oracle SOA and BPM Suite 11.1.1.5
    I have a BPMN process that have an entry variable of type CBEFF_BIR_Type (the xml declaration is shown below)
    <xsd:complexType name="CBEFF_BIR_Type">
                     <xsd:sequence>
                        <xsd:element name="FormatOwner" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1"/>
                        <xsd:element name="FormatType" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1"/>
                        <xsd:element name="BIR_Information" minOccurs="0" maxOccurs="1">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="BIR_Info" type="iso-iec19785-3-7:BIRInfoType" minOccurs="0"
                                         maxOccurs="1"/>
                                    <xsd:element name="BDB_Info" type="iso-iec19785-3-7:BDBInfoType" minOccurs="0"
                                         maxOccurs="1"/>
                                    <xsd:element name="SB_Info" type="iso-iec19785-3-7:SBInfoType" minOccurs="0"
                                         maxOccurs="1"/>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        *<xsd:element name="BIR" type="tns:BaseBIRType"/>*
                    </xsd:sequence>
                </xsd:complexType>* BaseBIRType xml declaration*
    <xsd:complexType name="BaseBIRType"/>According to the business logic that BIR sould contain a node of type URI_BIR or BinaryBIR (xml declaration is shown below), it will never a self BaseBIRType.
    <xsd:complexType name="URI_BIR">
                    <xsd:complexContent>
                        *<xsd:extension base="tns:BaseBIRType">*
                            <xsd:sequence>
                                <xsd:element name="URI" type="xsd:anyURI"/>
                            </xsd:sequence>
                        </xsd:extension>
                    </xsd:complexContent>
                </xsd:complexType>
    <xsd:complexType name="BinaryBIR">
                    <xsd:complexContent>
                        *<xsd:extension base="tns:BaseBIRType">*
                            <xsd:sequence>
                                <xsd:element name="Binary" type="xsd:base64Binary"/>
                            </xsd:sequence>
                        </xsd:extension>
                    </xsd:complexContent>
                </xsd:complexType>As you can see, the bolded code in the first block illustrate a node of type BaseBIRType and the bolded code in the second block shows that the complex type URI_BIR and BinaryBIR are an extension of BaseBIRType. So it looks like a inheritance, as I see it.
    Inside my process I need to know what kind of node is coming inside de BIR (URI or Binary) to copy it to the correct variable type. I've tryed using the XPath Expessions provided by the IDE (+ora:instanceOf(XpathExpression, QName)+) but I had no results.
    Please someone who can guide me?, I'll appreciate any help. I'm new in XPath.
    Regards,
    isabelbernely

    As I see it you should use transformations not associations in such case. Within transformation (xslt) you should use XPath expression to test which of the concrete instance of the base type you are dealing with and proceed accordingly. That's bit ugly (depending on actual subelements to distinguish types) so there are two alternatives:
    1. use xsi:type in xml instance - an attribute which will directly indicate the type of the element (many java xml binding frameworks can output such attribute while marshalling types to xml)
    2. remodel your xsd to use substitution groups - the construct is similar but due to nature of substitution groups each concrete type will have a separate named element - easy to distinguish later in transformation

  • XPath expressions in XmlCursor / XmlObjects

    Hi all,
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    A simple example of an xml
    <rules>
    <rule disabled="true">hello</rule>
    <rule>hello</rule>
    </rules>
    It should return one node, but actually it returns nothing. If I use another one:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE";
    Then I get two nodes (which is correct). It seems to me a bug or a partial support
    for XPath expressions. Or maybe I am using a bad syntax, anyone can help?
    Thanks in advance !

    Hi,
    >
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    I think any XPath expressions which use [] are not supported in stand alone
    version, but as this is not documented I could be wrong.
    Regards
    Arek

  • How to use XPath in the adapter framework

    I am creating a XI adapter to our system.
    In the adapter I want to use XPath expression.
    I use the classes from javax.xml.xpath.*
    This way does not work in the XI application server. (Java 1.4.2)
    What is the correct way? Which packages/classes must be used?
    Miklos

    Hi Miklos,
    The package javax.xml.xpath was introduced with Java 5 (1.5), thus it is not available in XI which runs Java 1.4.2. There are (at least) a couple of ways to use XPath in Java 1.4:
    1. Use a third-party library that supports XPath, for instance Xalan-J from Apache.
    2. Embed your XPath expression in an XSLT transformation, execute the transformation using classes from the javax.xml.tranform... packages (which <i>are</i> part 1.4) and extract the result.
    Cheers,
    Thorsten

  • C++ sample code using XPATH

    Need to navigate an XML and extract xml nodes using XPATH expressions in C++ Application.
    Please send us a C++ code sample using Oracle 9.2.0.3 XPATH API functions to extract an XML using XPATH expression.
    Thanks
    Shiva

    Hi,
    Where i can find this path "$XDK_HOME\xdk\demo\c\xslt"
    thanks in advance
    shashi.

  • Cannot use bpws:getVariableData in dynamic assignment using xpath

    Hello,
    I'm trying to use dynamic task assignment using xpath expression. I have a BPEL variable (collection) that holds a list of users.
    Under task assignment I set the following expression (data type- by expression):
    bpws:getVariableData('Invoke1_get_usersSelect_OutputVariable','TestApprovalCollection','/ns5:TestApprovalCollection/ns5:TestApproval')
    But when i run the process i get this error :
    Function 'getVariableData' not found
    Your help is appreciated.
    Regards,

    Make sure you have this entry in your bpel.
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

  • XPath expression for fetching element names & attributes

    Hi out there!
    I�m trying to get a result set out of a xml schema, using XPath. The problem is, that any expression gets just a whole node set back, as it seems. The result I�d like to get would be the following. Imagine I got a schema like this:
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:r="http://recipes.org"
    targetNamespace="http://recipes.org"
    elementFormDefault="qualified">
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="title" type="string"/>
    <element ref="r:ingredient" minOccurs="0" maxOccurs="unbounded"/>
    <element ref="r:preparation"/>
    <element name="comment" minOccurs="0" type="string"/>
    <element name="nutrition">
    <complexType>
    <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="carbohydrates" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="fat" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="calories" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="alcohol" type="r:nonNegativeDecimal" use="optional"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Now, when I`m refering to the element <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>, I would like to get all ancestors of it, which is not a big issue at all, but i`d just like to get their names and attributes, if they have some. So the result should be something like:
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="nutrition">
    <complexType>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    Any ideas anybody?
    Thanks in advance, Jens

    Well, I would use the org.apache.xpath.XPathAPI class and parse the input XML into a DOM document., and then utilize the single xpath expression //attribute[@name=protein]/ancestor::* to recover all ancestors (in a directal-tree-traversal order) of any node called "attribute" and with attr "name=protein" .
    Could it be?

Maybe you are looking for

  • To increase the VARCHAR datatype column length

    Hi, I need to increase the VARCHAR datatype column length from VARCHAR2(16) TO VARCHAR2(100) on Production environment. Kindly let us know the impact on Production and also required for downtime to proceed the activity. Please find the details as bel

  • Certificate error on Outlook 2013 clients, Outlook 2007 clients do not get certificate error, Exchange 2010, dot local domain name

    Hi I'm looking for a solution that I can't seem to find.  I have an Exchange 2010 server running in a dot local domain (domainname.local), so my SSL certificate is installed using the servers external email DNS name.  email.mycompany.com I have follo

  • First,last next previous,save, delete,execute,find.

    experts, am using jdev 11.1.1.4.0 in jdeveloper has buttons like such as first,last next previous,save, delete,execute,find. what my question is? is it possible to do this? i don't want these buttons, instead of the buttons -- i needed icons. for doi

  • HD into iMovie 09?

    Imovie 09 imports at "full original size" video from Sony TG3 set at HD (1920x 1080). However when I check under the "Share" tab - "Export with Quicktime" - "Options" - current size shows 920x540. Why? Does that mean it was not imported at full size?

  • Shake Reduction filter is slow on a very fast PC

    When I render a preview in Shake Reduction filter in Photoshop CC it takes about 10 seconds on an 8-way Intel i7 with 16 GB RAM and an SSD scratch drive Windows PC. I have run performance analyzer during the rendering and cannot find any bottleneck.