Skip to main content

Posts

Showing posts with the label xquery

Add/Delete Hours/Minutes in Xquery

Hi, Recently i came up with a requirement where due to different timezone we have to send received date with 4 hour difference, We tried same thing to control in XSLT but in that case we have to write one XSLT template which will handle it. Yes that work for us as we need to handle time part only, in-respect of what's going to be happen with Date but for feature we must be prepared to handle date also, so we come up with some pre-defined xquery function who will take care our this timezone issue. Subtract minutes from date. {xs:dateTime(runTs)  -  xs:dayTimeDuration("PT15M")} Subtract hours from date {xs:dateTime(runTs)  -  xs:dayTimeDuration("PT4H")} Add hours in date {xs:dateTime(runTs)  + xs:dayTimeDuration("PT4H")} Add minutes in date. {xs:dateTime(runTs)  +  xs:dayTimeDuration("PT15M")} Sample Test case: 4 Hours subtract from input dateTime  Input:   <runTs>2019-07-02T03:18:15.3...

ParseEscapedXML Function In Oracle BPEL XSLT Is Throwing Parsing Error For Special Character &

The ampersand escape sequence "&" in a Database Record/XML Payload is being converted to '&amp;' by the BPEL composite.  This results in the XSLT transformation code throwing an oracle.xml.parser.v2.XMLParseException error/exception when the parseEscapedXML method is invoked against the data. The parseEscapedXML method was deprecated in in 12C and should not longer be used. It has been replaced by the new method oraext:parseXML. There is a know bug in the oraext:parseXML method that was address in patch 21377740. The fixes that were made in 21377740 where incorporated into the  12.2.1.0.0 GA release, thus there no patch needed  for the issue.   Note: No backport fix for 12.1.3 was released

How to fetch list item from XML based on other list value

Hi Everyone, Hope you are doing well, Today we are going to see how we can fetch data from LIST B based on LIST A item value. Following is use case: List A, It's a list employee with employee ID List B, It's a list of some external system which have list of data fetched on List A employee ID. List C, This list will be a combination of List A and List B data. We are going to use one loop in XSLT and for every employee ID we will fetch data from List B with out any nested loop. <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0">   <xsl:param name="List2.outputPart"/>   <xsl:param name="GetEmployee_ManagerId_OutputVariable.outputPart"/>   <xsl:template match="/">     <ns0:ListData3>       <xsl:for-each select="/ns0:PsftIdmEmpContractorsCollection/ns0:PsftIdmEmpContractors">         <xsl:variable name="EmpID...

Oracle SOA LDAP Adapter End to End Configuration

What is LDAP Adapter: The Oracle LDAP adapter provides bi-directional connectivity with LDAP V3- compliant directory servers. The chapter provides information on how to model the LDAP adapter as a reference to perform CRUD (Create, Read, Update and Delete) operations and how to model the LDAP adapter as an inbound publication service on a directory server. Information describing various users, applications, files, printers, and other resources accessible from a network is often collected into a special database called an LDAP directory. Access to LDAP directories is a basic requirement of enterprise workflows. The LDAP Adapter Configuration Wizard provides a graphical and intuitive interface to model LDAP services to send requests to and receive responses from LDAP servers. LDAP (Lightweight Directory Access Protocol), is an Internet protocol for accessing information directories. A directory service is a distributed database application designed to manage the entries and attribu...