'No transformation' not working

Here's the scenario : I have two datasources feeding a DSO (DS1 and DS2). There are 2 key fields (common to both datasources) and 2 fields DF_DS1 and DF_DS2.
I am populating data through DS1 for all three key fields and DF_DS1, 'no transformation' for DF_DS2, and similarly, populating all three key fields and DF_DS2 from DS2.
Data is first written from DS1 and looks like this :
KF1
KF2
DF_DS1
DF_DS2
101
002
TRI003
When data is written from DS2, the record with the same key field should not touch 'DF_DS1' but write the value into 'DF_DS2', unless my basic assumption here is wrong. But when I pull in the data, it looks like this :
KF1
KF2
DF_DS1
DF_DS2
101
002
050065
Has anyone faced this situation ? Is my basic assumption incorrect ?

The two data diagrams actually look like this :
Fig 1 :
KF1
KF2
DF_DS1
DF_DS2
101
002
TRI003
When data is written from DS2, the record with the same key field should not touch 'DF_DS1' but write the value into 'DF_DS2', unless my basic assumption here is wrong. But when I pull in the data, it looks like this :
KF1
KF2
DF_DS1
DF_DS2
101
002
050065

Similar Messages

  • Free transform not working in CC [was:PLEASE HELP ME!!!]

    Hello! Please, Please Help me! I installed Photoshop CC to edit my photo and when I use  free transformation it is not working. I need just to transform one litte area in the photo.
    I have windows 7 64 bits. Thank you!

    Chris, Thank you! I wanted to change the eye area, so when I selected the area and used free transformation tool, it did not work. Free transformation worked only for the whole image but not for the selcted area. I was using this video. May be I need some more plug ins. http://www.youtube.com/watch?v=KI8Ab213ejU

  • Subject: 0TCT_VC12 Transformation not working

    0TCT_VC12 by default does not have any transformation.  0CALDAY is populated but 0CALMONTH is
    All zeros. I set up a transformation (from 0TCT_VC12 to 0TCT_VC12), then mapped 0CALDAY->0CALMONTH. I do see transformation rule type as Time Characteristic.
    I activated the transformation.
    Yet when I Display Data for 0TCT_VC12, it 0CALMONTH it is still 00000 as though transformation never worked.
    What am I doing wrong?

    Hi,
    So in this case either you need to add a routine in update rules to convert the calday to calmonth or you need to add field in Cube Fiscal Year variant and populate a constant value. Even to write a routine you will be in need of Fiscal year variant.
    This will convert from Calday to Calmonth.
    Hope this helps
    Regards,
    Akhan

  • Transformation not working on result  from oraext:query-database() functio

    Step 1: Create a project in Jdeveloper (File->New->Project->SOA Project)
    Step 2: Select synchronous process
    Step 3: Take the default schema for input and output
    Step 4: create a schema to hold multiple simple type string values.
    Step 5: Import that xsd file in the project wsdl file.
    Step6: Create a another variable (var1) referring the above element type (result)
    Step7: Drop an assign activity from component palette to the process between Receive and Replay activity
    Step 8: In the from section use the function oraext:query-database("select ename from emp",true(),true(),'jdbc/EBS_database').in the to section select the var1 variable.
    Step9: Drop another assign activity from component palette to the process before Replay activity and after the first assign activity
    Step 10: In from section select the first ename using xpath from var variable and assign to the output variable.
    Error: The value is not coming to the output from source(var) variable using xpath or transformation.

    See the audit trail on EM and verify why it is not working.
    Regards,
    Anuj

  • Command T (Transform) Not working

    I just installed Photoshop CS4 on my Mac.  My OS is 10.5.8.
    It appears the keyboard short cut command + T  for free transform is not working.    Other short cuts are working, like Command S, Command Z, the regular ones. But not sure what else may not be working if anything. Any suggestions? Ive already contacted my keyboard manufacture and they said its not an issue with the keyboard itself.

    Ive already contacted my keyboard manufacture and they said its not an issue with the keyboard itself.
    I'm shocked. Shocked I tell ya!
    Transform won't work on locked or background layers. You must also have a layer highlighted in blue (in the layers panel) for it to work. If not, you might try resetting the prefs (hold command-option-shift as you launch PS, and confirm at the prompt).

  • XSL transformation not working

    Hi!
    I am having problems when trying to generate XSL transformation from XML to XML (where XML output is actually XHTML). It always fails executing <xsl:callTemplate name="something", when <xsl:callTemplate /> is executed from another <xsl:template> which is also called with <xsl:callTemplate. Version of database is 10.2.0.4.0, received error is: ORA-00604: invalid character value 'burek' for attribute 'name'.
    Transformation is working in Java and Altova XMLSpy.
    PL/SQL code:
    procedure process_xsl(p_xml in clob, p_xsl in clob, p_result out clob) is
    w_xsl_proc dbms_XSLProcessor.Processor;
    w_xsl_ss dbms_XSLProcessor.Stylesheet;
    w_dom_xsl dbms_xmldom.DOMDocument;
    w_dom_xml dbms_xmldom.DOMDocument;
    w_parser dbms_xmlparser.Parser;
    begin
    --xml in xsl iz cloba v DOMDocument
    w_parser := dbms_xmlparser.newParser;
    dbms_xmlparser.parseClob(w_parser, p_xml);
    w_dom_xml := dbms_xmlparser.getDocument(w_parser);
    dbms_xmlparser.freeParser(w_parser);
    w_parser := dbms_xmlparser.newParser;
    dbms_xmlparser.parseClob(w_parser, p_xsl);
    w_dom_xsl := dbms_xmlparser.getDocument(w_parser);
    dbms_xmlparser.freeParser(w_parser);
    --xsl procesiranje
    w_xsl_proc := dbms_XSLProcessor.newProcessor;
    w_xsl_ss := dbms_XSLProcessor.newStylesheet(w_dom_xsl, null); <-- Here error is received
    END;
    Stylesheet:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></xsl:output>
         <xsl:decimal-format name="dec" decimal-separator="," grouping-separator="."/>
         <!-- Predefined constants from einvoice xml schema -->
         <xsl:variable name="einvoiceIssuerCode" select="'II'"></xsl:variable>
         <xsl:variable name="einvoiceRecipientCode" select="'IV'"></xsl:variable>
         <xsl:variable name="einvoiceIssueLocationCode" select="91"></xsl:variable>
         <xsl:variable name="einvoiceIssueDateCode" select="137"></xsl:variable>
         <!-- Constants directly from document which is a part of transformation -->
         <xsl:variable name="einvoiceNumber" select="/IzdaniRacunEnostavni/Racun/GlavaRacuna/StevilkaRacuna/text()"></xsl:variable>
         <!-- Intro template -->
         *<xsl:template name="burek"> <!-- Second template called with xsl:call template -->*
              <xsl:text>TEST</xsl:text>
         </xsl:template>
         <!-- Template in which we create html structure including css -->
         <xsl:template name="einvoice">
              <html xmlns="http://www.w3.org/1999/xhtml">
              <head>
                   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                   <title>Vizualizacija e-računa št. </title>
                   <xsl:call-template name="burek"></xsl:call-template>
              </head>
              <body>
              </body>
              </html>
         </xsl:template>
         <!-- Intro template -->
         <xsl:template match="/">
    *          <xsl:call-template name="einvoice"></xsl:call-template> <!-- This call is OK -->*
         </xsl:template>
    </xsl:stylesheet>
    XML document
    <?xml version="1.0" encoding="UTF-8"?>
    <IzdaniRacunEnostavni>
    <Racun Id="data">
    <GlavaRacuna>
    <VrstaRacuna>380</VrstaRacuna>
    <StevilkaRacuna>1205019908211</StevilkaRacuna>
    <FunkcijaRacuna>9</FunkcijaRacuna>
    </GlavaRacuna>
    <DatumiRacuna>
    <VrstaDatuma>137</VrstaDatuma>
    <DatumRacuna>2012-05-07T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <DatumiRacuna>
    <VrstaDatuma>263</VrstaDatuma>
    <DatumRacuna>2012-04-28T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <DatumiRacuna>
    <VrstaDatuma>263</VrstaDatuma>
    <DatumRacuna>2012-05-27T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <DatumiRacuna>
    <VrstaDatuma>263</VrstaDatuma>
    <DatumRacuna>2012-03-28T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <DatumiRacuna>
    <VrstaDatuma>263</VrstaDatuma>
    <DatumRacuna>2012-04-26T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <DatumiRacuna>
    <VrstaDatuma>263</VrstaDatuma>
    <DatumRacuna>2012-04-27T00:00:00.0Z</DatumRacuna>
    </DatumiRacuna>
    <Lokacije>
    <VrstaLokacije>91</VrstaLokacije>
    <NazivLokacije>Ljubljana</NazivLokacije>
    </Lokacije>
    </Racun>
    </IzdaniRacunEnostavni>
    Edited by: 938026 on 01-Jun-2012 00:35

    Hi,
    I think your problem lies in the <title>. You are using non UTF-8 characters in the title (š), but you marked your XML as UTF-8. So change the title to have unicode charaters and it will work.
    Herald ten Dam
    http://htendam.wordpress.com

  • Sound Transform not working

    Hey guys,
    I'm getting this silly little problem. I'm making a sound play and I'm trying to change it's volume. I've done this many times before and got it to work, but in this script for some reason it's not working. The script looks like this :
    package {
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.media.SoundTransform;
        public class Main
            var createSound:Create;
            var createChannel:SoundChannel;
            var createTransform:SoundTransform;
            public function Main()
                createSound = new Create();
                createChannel = new SoundChannel();
                createTransform = new SoundTransform();
                createTransform.volume = 0.5;
                createChannel.soundTransform = createTransform;
                createChannel = createSound.play();
    For some reason, it plays the sound, but at full volume no matter what value I put in the createTransform.volume variable. I've gotten almost the same exact code working in other games I've made, I dunno why it isn't working in this one

    try:
    package {
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.media.SoundTransform;
        public class Main
            var createSound:Create;
            var createChannel:SoundChannel;
            var createTransform:SoundTransform;
            public function Main()
                createSound = new Create();
                createChannel = new SoundChannel();
                createTransform = new SoundTransform();
                createTransform.volume = 0.5;
    // in this order
                createChannel = createSound.play();
    createChannel.soundTransform = createTransform;

  • XSLT transformation not working in 1.5 (but was in 1.4)

    Gentlemen,
    I have a problem with some code that worked fine under 1.4 (at least up to 1.4.2_06), but now no longer works under 1.5.0 (I know this isn't the most recent, but I have yet to update).
    I use the following XSL template in order to take a string containing a valid XML definition, strip out all whitespace (this is ok, I know I dont need it), and then indent it in a nice readable format.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
      <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" xalan:indent-amount="2"/>
        <xsl:strip-space elements="*"/>
          <xsl:template match="@*|node()">
            <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
          </xsl:template>
    </xsl:stylesheet>The code I use to perform the transformation is as follows :
    // read the XML string into a DOM document structure
    StringReader reader = new StringReader(xmlString);
    InputSource source = new InputSource(reader);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse(source);
    // Input file to be transformed is the DOM document we have just created
    Source input = new DOMSource(doc);
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource(new StringReader(TEMPLATE_AS_DEFINED_ABOVE)));
    // create output writer and transform
    StringWriter writer = new StringWriter();
    transformer.transform(input, new StreamResult(writer));
    System.out.println(writer.toString());As already stated, this produced the goods, in 1.4.2_06, but in 1.5.0 it results in the following error :
    java.lang.NullPointerException
         at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1077)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1067)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:380)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:325)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:791)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at com.ingenico.tests.ReportTest.prettifyXMLString(ReportTest.java:231)
         at com.ingenico.tests.ReportTest.<init>(ReportTest.java:100)
         at com.ingenico.tests.ReportTest.main(ReportTest.java:136)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    ERROR:  'null'
    FATAL ERROR:  'Could not compile stylesheet'
    Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at com.ingenico.tests.ReportTest.prettifyXMLString(ReportTest.java:231)
         at com.ingenico.tests.ReportTest.<init>(ReportTest.java:100)
         at com.ingenico.tests.ReportTest.main(ReportTest.java:136)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)I have a headache now and would appreciate some help - not with the headache, but the above error! :)
    Cheers in advance,
    Lee.

    have you tried to remove the xalan specific entries
    in the XSL and use that code:
    transformer.setOutputProperty("{http://xml.apache.org/
    xslt}indent-amount", "2");?Thanks for the reply.
    Unfortunately, Ive already tried this, and it's not the problem.
    If I remove the whole <xsl:template match /> section from the template, then the compilation error does not occur. I guess this narrows it down somewhat, but I don't know why that section is now failing under 1.5. (Ive since also tried with 1.5.0_03 - same error).

  • XSLT Transformation NOt WORKING

    i have this XSLT and XML payload that i am wanting to transform. but the output xml does not contain the attribute for element engine.
    any help would be appreciated?
    this is my xslt
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="../HTTPBinding.wsdl"/>
    <rootElement name="Envelope" namespace="http://HPES.org/"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../Service1.wsdl"/>
    <rootElement name="Envelope" namespace="http://HPES.org/"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.4.0(build 110106.1932.5682) AT [TUE JUN 07 11:17:07 CDT 2011]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:inp2="http://HPES.org/"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:inp1="http://tempuri.org/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:tns="http://oracle.com/sca/soapservice/Application1/Project1/Service1"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl inp2 xsd inp1 wsdl tns bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
    <xsl:template match="/">
    <inp2:Envelope>
    <Body>
    <soapP1>
    <soapP2>
    <engine>
    <xsl:attribute name="value">
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine/@value"/>
    </xsl:attribute>
    <xsl:attribute name="txnElapsedTime">
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine/@txnElapsedTime"/>
    </xsl:attribute>
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine"/>
    </engine>
    </soapP2>
    </soapP1>
    </Body>
    </inp2:Envelope>
    </xsl:template>
    </xsl:stylesheet>
    this is my input xml
    <soap:Envelope xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soapP1>
    <soapP2>
    <engine value="1" txnElapsedTime="0.05"/>
    </soapP2>
    </soapP1>
    </soap:Body>
    </soap:Envelope>
    this is my output where the attribute are lost.....
    <?xml version="1.0" encoding="utf-8"?>
    <inp2:Envelope xmlns:inp2="http://HPES.org/">
    <Body>
    <soapP1>
    <soapP2>
    <engine value="" txnElapsedTime="">
    </engine>
    </soapP2>
    </soapP1>
    </Body>
    </inp2:Envelope>

    <?xml version="1.0" encoding="UTF-8"?>
    <inp2:Envelope xmlns:inp1="http://tempuri.org/" xmlns:inp2="http://HPES.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://oracle.com/sca/soapservice/Application1/Project1/Service1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <Body>
              <soapP1>
                   <soapP2>
                        <engine value="1" txnElapsedTime="0.05"/>
                   </soapP2>
              </soapP1>
         </Body>
    </inp2:Envelope>this works for me
    you select the Envelop element op de prefix : inp2 (in your xsl defined as xmlns:inp2="http://HPES.org/")
    but in your payload data you say : <soap:Envelope (xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/")
    so..namespace mismatch

  • JDeveloper transformation not working

    When I start JDeveloper i get the following error
    C:\Oracle\Middleware\jdeveloper\integration\seed\soa\configuration\bpm-xpath-functions-config.xml (The system cannot find the file specified)
    and when I try to create a transform activity the following error is thrown
    Previously reported error [NPE in o.ji.vcs.generic.GenericClient:1475]
    Previously reported error [NPE in o.tip.tools.ide.tx.addin.MapperOptions:202]
    I am running Windows 7 with Service Pack 1 and JDeveloper 11.1.1.6.0 with soa-jdev-extension_v11.1.1.6.0.15.53.zip
    Does anyone know how to resolve this error?

    Was it working earlier ?
    I think you dont have those path correct from the place where you are running the Jdeveloper.
    If not the above, you could have a corupted Jdeveloper, you may need to reinstall the Jdeveloper.
    Thanks,
    Vijay

  • Transformation not working

    I'm trying to transfer data from a datasource into a datastore in BW 7.  Most of the data is character data and I'm trying to use the ToUpper function in the transformation rules. Although the data is transfered and one transformation rule which assigns a constant works, the character data is not converted to uppercase.
    Any help with this problem would be greatly appreciated.  I'm out of ideas.
    Ross

    I tried doing the transformation between the DataStore and an InfoCube instead of between the Datasource and the DataStore and it worked.  Not sure why, but it worked.  Thanks for the responses.  If anyone knows why it worked the way it did could let me know, I would appreciate it.  BW is often very mysterious.
    Ross

  • Transform not working? CP v5.5

    Hello.
    I am inserting a Text Caption, using the HaloBlue style. I want to be able to resize the caption box but using the anchors doesn't work. I can't adjust it. So, I tried using the Transform option. I took off the "Contraint Proportion" and tried adjusting the size that way. I can adjust it UP (make it larger) but cannot adjust it smaller beyond W:156 H:81.
    So confused. Wondering if somebody can help.

    Never mind. Found it myself. 
    Edit a text caption
    If you are resizing a text caption, you cannot make the text caption smaller than the bitmap used to create the text caption. For example, the text caption style “Pill” uses bitmaps sized approximately 18 pixels (wide) x 16 pixels (high), so these bitmaps could not be resized to 15 x 12 pixels. However, any of the text caption bitmaps can be made larger. If you need very small text captions, consider creating custom captions 

  • N:1 transformation not working

    I am using a n:1 transformation in a bpm. The output message however is getting only the first message entry of the the mutiple entries available in the input message. In the interface mapping and the message mapping I have configured the occurance in the source message as 0:unbounded and that for target message as 0:1. I tried to test the message mapping by uploading the input xml file and the output shows me just the first message. 
    Guidance from the forum members in resolving the problem will be greatly appreciated.
    Thanking you
    Regards
    Vinay Rane

    Hii Vinay,
    Suppose ur input XML is as follows
    <message> //1-1
    <root>  //1-1
      <head> //0-unbounded
      </head>
    </root>
    </message>
    now ur target shud be -
    <message> //1-1
    <root> //0-unbounded
    </root>
    </message>
    And mapping betwen the head  of source and root of target..
    This way it worked for me.. Hope it works for u too..
    Regards,
    Divya

  • Glassfish Web Service XSLT Transformation Not Working

    Hi,
    I've got a problem transforming an incoming soap request from a Microsoft Web Services Toolkit client. Basically, I've got a JAX-WS web service deployed to Glassfish v2 b33 which works fine when called by a Java client, but when called from the MS web services toolkit, some extra namespace elements are added to the SOAP request which the JAX-WS service doesn't seem to like. The incoming soap request looks like: <SOAP-ENV:Envelope
         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
         <SOAP-ENV:Header/>
         <SOAP-ENV:Body>
               <SOAPSDK4:getConfig xmlns:SOAPSDK4="http://ws.firestorm.alternativenetworks.com/">
              <SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>
         </SOAPSDK4:getConfig>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope> The problem lies with <SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>, in that the inclusion of SOAPSDK4 for any arguments (i.e. arg0, arg1) results in the values for the arguments reaching the web service as null. I've tested sending the SOAP request with a tcpmon utility, and the same soap request (as above) without the SOAPSDK4 in the arg0 element (i.e. <arg0>Inbound</arg0>) works fine.
    So I tried using the Transformation feature of glassfish, transforming the incoming SOAP request using the following XSLT file which I have tested and am sure works (I'm no XSLT guru so this will definitely need some tidying up): <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet  version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
         <xsl:output method="xml" indent="yes"/>
         <xsl:template match="*">
              <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
         </xsl:template>
         <xsl:template match="/SOAP-ENV:Envelope/SOAP-ENV:Body/*">
              <xsl:copy>
                   <xsl:copy-of select="@*"/>
                   <xsl:for-each select="*">
                        <xsl:text disable-output-escaping="yes"><arg></xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
                        <xsl:value-of select="."/>
                        <xsl:text disable-output-escaping="yes"></arg></xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
                   </xsl:for-each>
              </xsl:copy>
         </xsl:template>
    </xsl:stylesheet>I load the .xsl file using the Transformation utility which seems to work fine, but when a request comes in from the MS client I get the following error: [#|2007-05-11T09:23:46.530+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=15;_ThreadName=Thread-15;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530]]|#]
    [#|2007-05-11T09:27:31.675+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=httpWorkerThread-4848-0;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675]]|#]
    [#|2007-05-11T09:28:00.269+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
    ERROR:  ''|#]
    [#|2007-05-11T09:28:00.285+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
    com.sun.enterprise.admin.wsmgmt.transform.TransformException: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:238)
         at com.sun.enterprise.admin.wsmgmt.transform.TransformFilter.process(TransformFilter.java:144)
         at com.sun.enterprise.admin.wsmgmt.filter.spi.FilterRouter.applyFilters(FilterRouter.java:69)
         at com.sun.enterprise.admin.wsmgmt.agent.GlobalMessageListenerImpl.processRequest(GlobalMessageListenerImpl.java:181)
         at com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl.processRequest(WebServiceEngineImpl.java:265)
         at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRequest(JAXWSEndpointImpl.java:53)
         at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:127)
         at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
         at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:70)
         at com.sun.xml.ws.mex.server.MetadataServerPipe.process(MetadataServerPipe.java:97)
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:191)
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:113)
         at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
         at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:208)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:374)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:100)
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:74)
         at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:187)
         at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:116)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:101)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:74)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:328)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
    Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:651)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:281)
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:224)
         ... 54 more
    Caused by: java.lang.NullPointerException
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1235)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TrAXFilter.parse(TrAXFilter.java:105)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:588)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:642)
         ... 56 more Could this be a bug in Glassfish or am I overlooking something or doing things completely wrong?
    Cheers.

    How are you passing the input to XSLT?
    If your input request is following:
    <cus:InputParameters xmlns:cus="http://www.tcs.com/Customer">
    <cus:customerID>2</cus:customerID>
    </cus:InputParameters>Then you should pass $body/cus:InputParameters as the Input document for bind input in Proxy Service.

  • 2nd try - DPS 7 dpadm add-virtual-transformation not working as expected

    I use DPS 7.0 B2009.1104.2146 on RHEL 4 update 8. (32 bits)
    I have an LDAP back-end where X509 user certificates are stored in either the usercertificate;binary attribute or the certAuth;binary attribute.
    I want my DPS to authenticate users thanks to their personal certificate, with SASL external BIND method. So, I need DPS 7 to be able to
    search the user certificate in two different attributes.
    Since it's not possible, (the cert-search-user-attr property is single-valued, unfortunately ), I 've tried to setup a virtual transformation, to
    have both physical attribute values in a single virtual attribute.
    The problem is that both physical attributes have the ";binary" qualifier and DPS doesn't seem to like it.
    When searching for the virtual attribute through DPS, DPS creates and return it, but I get garbage/wrong values:
    Transformation configuration:
    -bash-3.00$ dpconf get-virtual-transformation-prop vue-P0 mapping_add-attr_certauth
    action : add-attr
    attr-name : certauth;binary
    internal-value : none
    model : mapping
    view-value : ${usercertificate;binary}
    LDAP search straight to the LDAP back-end:
    -bash-3.00$ ldapsearch -p myport -h myldaphost -b "dc=my namingcontext" cn=sslconnect
    version: 1
    dn: cn=sslconnect.gip-cps.fr,......
    objectClass: top
    cn: sslconnect
    userCertificate;binary:: MIIC/zCCAmigAwIBAgIQMDAwMTIwNzkwMEDUnWNGsjANBgkqhkiG
    9w0BAQUFADA/MQswCQYDVQQGEwJGUjEVMBMGA1UEChMMR0lQLUNQUy1URVNUMRkwFwYDVQQLExBB
    Qy1DTEFTU0UtNC1URVNUMB4XDTA5MDUyODA4NDMyOFoXDTEyMDUyODA4NDMyOFowazELMAkGA1UE
    LDAP search through the DPS 7 server:
    -bash-3.00$ ldapsearch -p 1389 -b "dc=my namingcontext" cn=sslconnect
    version: 1
    dn: cn=sslconnect
    objectClass: top
    cn: sslconnect
    userCertificate;binary:: MIIC/zCCAmigAwIBAgIQMDAwMTIwNzkwMEDUnWNGsjANBgkqhkiG
    9w0BAQUFADA/MQswCQYDVQQGEwJGUjEVMBMGA1UEChMMR0lQLUNQUy1URVNUMRkwFwYDVQQLExBB
    Qy1DTEFTU0UtNC1URVNUMB4XDTA5MDUyODA4NDMyOFoXDTEyMDUyODA4NDMyOFowazELMAkGA1UE
    certauth;binary:: MO+/vQLvv70w77+9Amjvv70DAgECAhAwMDAxMjA3OTAwQNSdY0bvv70wDQY
    JKu+/vUjvv73vv70NAQEFBQAwPzELMAkGA1UEBhMCRlIxFTATBgNVBAoTDEdJUC1DUFMtVEVTVDE
    ZMBcGA1UECxMQQUMtQ0xBU1NFLTQtVEVTVDAeFw0wOTA1MjgwODQzMjhaFw0xMjA1MjgwODQzMjh
    aMGsxCzAJBgNVBAYTAkZSMQ0wCwYDVQQKEwRURVNUMRMwEQYDVQQHFApQYXJpcyAoNzUpMRgwFgY
    DVQQLEw8zMTgwMDMwMDA5MDAwMzkxHjAcBgNVBAMTFXNzbGNvbm5lY3QuZ2lwLWNwcy5mcjDvv73
    vv70wDQYJKu+/vUjvv73vv70NAQEBBQAD77+977+9ADDvv73vv70C77+977+9AO+/vQAW77+9VC7
    vv71Bfe+/vRjvv71JNHIELu+/vSB+77+9Pu+/vTbvv73vv71R77+9Fm9ic++/ve+/vSVgS++/vUz
    vv71M77+9NO+/vQrvv71Yae+/vTgv77+9dw0+77+9cO+/vSLvv71wPCrvv71YUu+/vTEbYe+/ve+
    /vTlK77+9Pu+/vci477+9dmo8T++/ve+/ve+/ve+/vRxU77+9K++/vRjvv73vv73vv71J77+977+
    9CwXvv73vv70xdCIc35rvv73vv73vv73Iku+/ve+/vWbvv73vv73vv71n77+977+9AgMBAAHvv73
    ...

    Hi there
    I'm having exactly the same problem here (AIR 3.6, Flash Builder 4.7). But somehow I don't really feel comfortable to write my own LocalizationManager when there's a built-in solution around. So I'm still trying to find the problem.
    I noticed that when I update the compiler argument (-locale=en_US,de_DE ), the ResourceManager *sometimes* switches the language, but somehow randomly and definitely not based the value set for localeChain.
    Furthermore, ResourceManager.getInstance().getLocales() does not return anything.
    The strange thing: Even when I do not include the localization resources ('locale/{locale}' in ActionScript Build Path -> Source Path) the resources in 'locale/en_US' or 'locale/de_DE' are available to the ResourceManager.
    Anyone with similar experiences?
    I'm grateful for any hint!

Maybe you are looking for