How to make use of the portal service "xsltransform"

Hi all,
I am using EP5 SP4 and is trying to create a component to do xml transformation by using the portal service "xsltransform". However when I run the code (which is reference to an example on web), the following error occured:
javax.naming.NotContextException: broker should be a Context
     at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:139)
     at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:140)
     at com.sapportals.portal.prt.repository.AbstractHierarchicalContext.lookup(AbstractHierarchicalContext.java:74)
     at javax.naming.InitialContext.lookup(InitialContext.java:345)
     at com.mk.kmbrowserid.MkKmBrowseRID$MkKmBrowseRIDDynPage.doProcessBeforeOutput(MkKmBrowseRID.java:167)
Here is my code:
Hashtable env = new Hashtable();
     env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory");
     InitialContext context = new InitialContext(env);
     IXSLTransformService xslTransService = (IXSLTransformService) context.lookup("/broker/services/"+IXSLTransformService.KEY);
     //retrieve the xsl file and put into string
     String line;
     StringBuffer styleSheet = new StringBuffer();
     IResourceContext resourceContext = new ResourceContext(myUser);
     IResourceFactory resFactory = ResourceFactory.getInstance();
Where the problem is occured in line 167 "IXSLTransformService xslTransService = (IXSLTransformService) context.lookup("/broker/services/"+IXSLTransformService.KEY);"
Do any one know how to solve this problem? And setting / config should be done before the service "xsltransform" can be used?
Thanks
Sam

hi
I need an example please....
did any one use that FM
Regards

Similar Messages

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to make use of the FM EDIT_TEXT_FORMAT_DOC

    Hi frnz,
    How to make use of the FM
    EDIT_TEXT_FORMAT_DOC
    Could anyone explain with an example how to use this
    regards

    hi
    I need an example please....
    did any one use that FM
    Regards

  • How to make use of the XFList in the Function Bar  of the XML Form Builder?

    Hello:
        Now I am creating blog using the XML Form Builder.
        In the bolg publishing interface of the SDN ,there is a tpoics list ,in this list you can select single or multiples.
        I find the XFList in the Function Bar of the XML Form Builder.But I don't know how to make use of this list?Who can help me?
    lexian
    Thanks a lot!

    In the Attributes of a screen field, there is an attribute called "Groups". This has 4 options for input (4 text boxes)
    SCREEN has 4 fields GROUP1, GROUP2, GROUP3 and GROUP4.
    The first text box under Groups attribute corresponds to SCREEN-GROUP1,
    2nd text box for SCREEN-GROUP2
    3rd text box for SCREEN-GROUP3
    4th text box for SCREEN-GROUP4
    Hope this helps.
    Thanks,
    Balaji

  • How to make use of the Legend from XY graph?

    The hardware i am using will create a plot everytime i do a scan. I will upload the it result(plot) to another XY graph. I try to create a multi plot on the XY graph but it seems not working. I am wondering how can i make use of the legend that come with the XY graph to solve my problem.

    Hi,
    You should be able to plot as many XY arrays to the graph as you need. As long as you don't delete the previous plots they should remain there. This will make things much easier than dealing with 2 graphs.
    There is an example at "C:\Program Files\National Instruments\CVI70\samples\userint\graphlegend.cws" that you can look at for an application with multiple plots.
    I hope this helps.
    Regards,
    Juan Carlos

  • How to make use of the spare physical memory under buffered I/O of Essbase

    We encountered an issue of the physical memory allocation of the server running Essbase with buffered I/O mode. We have implemented some cache setting in Essbase but still found that the disk I/O is quite high. Also we observed that Windows 2003 server cannot make use of the spare physical memory available as the system cache for database files of Essbase.
    As allocating more memory as Essbase cache might not help, we would like to know other than changing to direct I/O mode, any other options can improve the disk I/O performance?
    Thanks!

    Sandeep Reddy wrote:
    Hi Hyperion_User,
    1. Disk IO performance,It mighe depend on quite a few things , one of the aspects might be your storage system. It can depend on the disk configuration too ( i.e if your disk is SAN or NAS, then it depends on the configuration like Raid ..etc).
    2. It depends on the HBA ( host bus adapter).
    3. Let me try to explain with diagram.
    http://www.c-sharpcorner.com/uploadfile/freebookarticles/apress/2008dec16010208am/DataStorageDesign/Images/159059214X-1404.1.gif
    4. It might depend on the HBA and even on the switch speed.
    5. Buffered IO is a very generic setting,which most of them use( that should not be an issue).
    6. Even if you have 30 to 40 GB free memory, every application in essbase has a limitation to it maximum usage ( 2 GB on windows ). Refer to DBAG for more information on this .
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/
    Thanks for your detailed advice. I just wonder if more physical memory can help to improve the disk I/O being used for concurrent read/write access. We are using Windows 2003 Enterprise Edition and not sure whether some spare physical memory can be used for this purpose.
    Thanks again!

  • How to make use of the 'Groups' in Screen Layout?

    Hi All,
    I have a screen with 10 input fields (F1, F2, .. F10).
    I set the 'Groups' attribute in the screen layout to 'DIS'.
    How could I make use of this 'Groups' attribute so that when I loop the screen, I will only disable fields with the 'Groups' attribute set to 'DIS'? Thanks
    I tried the following codes, but it's not working:
      LOOP AT SCREEN.
        IF SCREEN-GROUPS IS NOT 'DIS'.
          SCREEN-INPUT = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    It says ==> The data object 'SCREEN' does not have a component called 'GROUPS'.

    In the Attributes of a screen field, there is an attribute called "Groups". This has 4 options for input (4 text boxes)
    SCREEN has 4 fields GROUP1, GROUP2, GROUP3 and GROUP4.
    The first text box under Groups attribute corresponds to SCREEN-GROUP1,
    2nd text box for SCREEN-GROUP2
    3rd text box for SCREEN-GROUP3
    4th text box for SCREEN-GROUP4
    Hope this helps.
    Thanks,
    Balaji

  • How to make use of the swf made by alchemy?

    Most of the examples are about compiling C/C++ to swc, then make use of it.
    As the alchemy introduction said, we can also compile into swf file. so i tried it. But i cann't get the CLibInit class. How to make it successful?
    The codes is below:
        private function initApp():void
            var  loader:Loader = new Loader();
            var context:LoaderContext = new  LoaderContext();
            context.applicationDomain =   new  ApplicationDomain(ApplicationDomain.currentDomain);
             loader.load(new URLRequest("abc.swf"),context);
             loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
         private function onComplete(e:Event):void
            var clibinit:Class =  this.loaderInfo.applicationDomain.getDefinition("module.abc.CLibInit")  as Class;
    The abc.swf is the file i compile in Alchemy. And i can get the CLibInit class by using swc file as below:
        import __AS3__.vec.*;
        import cmodule.abc.*;    
        var abc:Object;
        private static function init() : void
                var clibinit:* = new CLibInit();
                abc = clibinit.init();
                return;
            }// end function

    I have the same problem. Did you get it?

  • How to make use of the crypto modules in the new Sparc T2 processors?

    Having just received some frontal indoctrination about the features of the new Niagara (T1/T2) processor platform, I've started to dig around its ncp cryptography support cores a bit, but I've got a few open ends that I hope someone here can tie up for me..
    - Is there any way to make current OpenSSL take advantage of the ncp cores? The FAQs don't mention it anywhere except a general "Included ability to use crypto hardware options". Does this already include Sun ncp? The openssl derivate that comes with Solaris10 is antique and I really want to replace it.. but if that means losing hardware support, I'm considering ditching the T2 altogether and going for US4+, doing crypto in the "old" way on the main cpu cores.
    - The Niagara crypto blueprint mentions some commands to run speed tests, which I did on a T2000 server I've got around here, and on an old 420 in parallel, and I got some results that puzzle me:
    The T2000:
    sign verify sign/s verify/s
    dsa 512 bits 0.0001s 0.0001s 13025.0 11979.2
    dsa 1024 bits 0.0001s 0.0001s 12835.7 12426.3
    dsa 2048 bits 0.3030s 0.6135s 3.3 1.6
    The 420:
    sign verify sign/s verify/s
    dsa 512 bits 0.001171s 0.001427s 853.8 700.7
    dsa 1024 bits 0.003521s 0.004292s 284.0 233.0
    dsa 2048 bits 0.011990s 0.014306s 83.4 69.9
    The T2k looks nice for short keys, but does it really drop from 13k/sec to 1.6/sec for the 2kbit keys, or is that a display bug?
    If not, does that mean that the ncp in the T1 cpu is limited to 1kbit keys, and if I intend to use longer DSA keys, I better stay doing it on normal CPU core?
    I see the same huge performance drop in RSA when switching from 2048 to 4096 bit key sizes. Ok, RSA isn't really that popular anymore.. but even DSA-1024 is aged a bit and many crypto researchers recommend the 2kbit key sizes already, at least for applications that are supposed to be running for a few years.
    Are there any improvements being made in the new T2 cpu series, compared to the T1 I ran the tests on?
    - The T1/T2 brochure also lists functions like crc32, md5, sha1 hashing algorithms in the crypto cores - how can I make use of those? I've got a few applications that do heavy checksumming and file hashing, and I'd love to offload these operations to the crypto cores; however I couldn't yet find any tool that allows me to do that. The regular md5sum binaries coming with Solaris still do the math on the main cpu core.

    I'd love to, but I don't have the money for a T2 system, and even if I did, I don't have the time to play with it right now anyways :(

  • How to make jwsc of the hello_world service work?

    Experts there,
    I encountered a problem when tried to build the hello_world service, the output of ant task like this:
    $ ant build-service
    Buildfile: build.xml
    build-service:
    [echo] destdir is: output/helloWorldEar
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: S:\webservices\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.java
    [jwsc] JWS: S:\webservices\hello_world\src\examples\webservices\hello_world\HelloWorldImpl.java Validated.
    [jwsc] Compiling 1 source file to S:\tmp\_qybxji0
    [AntUtil.deleteDir] Deleting directory S:\tmp\_qybxji0
    BUILD FAILED
    S:\webservices\hello_world\build.xml:43: Deployment descriptor: S:\tmp\_qybxji0\web.xml does not exist.
    Total time: 23 seconds
    Here is my build.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="webservices-hello_world" default="all">
    <property name="wls.username" value="weblogic" />
    <property name="wls.password" value="weblogic" />
    <property name="wls.hostname" value="localhost" />
    <property name="wls.port" value="7001" />
    <property name="wls.server.name" value="webservices" />
    <property name="ear.deployed.name" value="helloWorldEar" />
    <property name="ear-dir" value="output/helloWorldEar" />
    <property name="tmp-dir" value="s:/tmp" />
    <property name="clientclass-dir" value="${example-output}/clientclasses"/>
    <property name="WEBLOGIC_SERVER_LIB" value="c:/bea/weblogic90/server/lib"/>
    <property name="JAVA_HOME" value="c:/JDKs/jdk1.5.0_06"/>
    <path id="project.class.path">
    <fileset dir="${WEBLOGIC_SERVER_LIB}">
    <include name="**/*.jar"/>
    </fileset>
    <fileset dir="${JAVA_HOME}">
    <include name="**/*.jar"/>
    </fileset>
    <pathelement path="${java.class.path}"/>
    <pathelement path="${clientclass-dir}"/>
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="project.class.path"/>
    </taskdef>
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask">
    <classpath refid="project.class.path"/>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath refid="project.class.path"/>
    </taskdef>
    <target name="build-service">
    <echo>destdir is: ${ear-dir}</echo>
    <jwsc
    tempdir="${tmp-dir}"
    srcdir="src"
    destdir="${ear-dir}"
    classpathref="project.class.path"
    keepGenerated="true" debug="on">
    <jws file="examples/webservices/hello_world/HelloWorldImpl.java"/>
    </jwsc>
    </target>
    <target name="clean" depends="undeploy">
    <delete dir="${example-output}"/>
    </target>
    <target name="deploy">
    <wldeploy action="deploy" name="${ear.deployed.name}"
    source="${ear-dir}" user="${wls.username}"
    adminurl="t3://${wls.hostname}:${wls.port}"
    targets="${wls.server.name}" />
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" name="${ear.deployed.name}"
    failonerror="false"
    user="${wls.username}" password="${wls.password}" verbose="true"
    adminurl="t3://${wls.hostname}:${wls.port}"
    targets="${wls.server.name}" />
    </target>
    <target name="client">
    <clientgen wsdl="http://${wls.hostname}:${wls.port}/HelloWorldImpl/HelloWorldImpl?WSDL"
    destDir="${clientclass-dir}"
    packageName="examples.webservices.hello_world.client"/>
    <javac
    srcdir="${clientclass-dir}" destdir="${clientclass-dir}"
    includes="**/*.java"/>
    <javac
    srcdir="src" destdir="${clientclass-dir}"
    includes="examples/webservices/hello_world/client/**/*.java"/>
    </target>
    <target name="run">
    <java classname="examples.webservices.hello_world.client.Main" fork="true" failonerror="true" >
    <classpath refid="client.class.path"/>
    <arg line="http://${wls.hostname}:${wls.port}/HelloWorldImpl/HelloWorldImpl"/>
    </java>
    </target>
    </project>
    I'm wondering why it put the web.xml to temporary directory then delete immediately, since it needs to use it later? Is this a weblogic bug?

    If I set explode="true" in jws, it gave me this error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    What's going on?

  • How to make use of a web service using ABAP to transfer data to portal?

    Hello Experts,
    I've a requirement to call/use a web service from a user exit, and need to transfer/update some data to the ESS portal.
    Kindly let me know what are the steps involved?
    Thanks & Regards,
    Mallik

    Hi John,
    I did searched te forums and got some information on this.
    But I didnot understand it completely. I'm looking for a step by step process.
    Kindly let me know if you have anything useful for me.
    Thanks & Regards,
    Mallik

  • How to make use of the index in my manual within Acrobat

    I've created an index in my FrameMaker book and would like it to be of use when it's converted to PDF.
    An index is most useful if it's provided in hard copy. How can I make it useful in Acrobat?
    Do I do something within Frame or Acrobat or both?
    Also, when I convert my document to PDF with bookmarks, a bookmark does not appear for my index.
    I have Acrobat 9 Pro.
    Thank you!

    In the book file, right-click the index file and select Set up Standard Index. In the subsequent dialog box, select Create Hypertext Links. Click Set. Update the book.
    When you print the book, click PDF Setup. In the Links tab, select Create Named Destinations for All Elements and Paragraphs.
    To make the Index appear in the bookmarks, check that its paragraph format style is included in the Include paragraphs list in the PDF setup dialog box.
    Hope this helps,
    Van

  • How to make use of the Input Stream

    Hai,
    I want to read input from the user for non-character type through Keyboard as the standard input device. How can I read the non-character type. I tried the following method, but not succeeded. The input data may be of type double or int. Can anyone help me.
    DataInputStream num=new DataInputStream(System.in);
    Double Vig_Fair_Value=num.read();
    Thanks,
    Sennat

    You read the characters the user types, eg. "15" into a string using a BufferedReader, you then convert them to a number here's an method to do it for integers
           public static int inInt()
              BufferedReader inp = new BufferedReader(new InputStreamReader(System.in));
              String s = "";try{s = inp.readLine();}catch(Exception e){}
              return toInt(s,0);     // make integer, default 0
           public static int toInt(String s, int er)
                int i;
                try{i = new Integer(s).intValue();}
                catch(NumberFormatException exc){i =er;}
                return i;

  • How to make use of the results of one step at the other step in the same sequence

    Hello
    I am new to the Teststand.
    I am using labview8.0 with teststand 3.1
    Plz get me solution for the below
    I am configuring the serial port resources like resource name, baud rate etc..,I made the initialization using setup task.I made serial port write and serial port read as independant vi's in labview and called them from teststand as steps.Now i need the same resource name appear in some other steps in the sequence .how can i get them using teststand commands instead of specfying them at each step.
    Also how to pass values or results obtained from one step to some other step in the same sequence using teststand commands.
    Also help me in parameter passing
    Regards
     Kiran

    Hi Kiran,
    I wrote some example code that demonstrates what you are trying to do. The sequence file relies on a local variable named visa_resource of type LabVIEWIOControl.
    Regards,
    Attachments:
    test.zip ‏11 KB

  • How to make use of the front camera on E71?

    Is there a way to make it useful for something while not on a video call?

    I can't speak for the E71 but some models (like my N8) have the option to capture pictures/video using the front camera so it could be used as a mirror.
    If the E71 has this option open the camera app, press options - "use secondary camera". If the option isn't there then it doesn't have the feature. You may be able to find third party apps that offer the feature by searching google.

Maybe you are looking for

  • Picking status in Out. delivery changed to status A after GR post with MB0A

    Hi, I am facing an issue in our production system, these is the scenario: - Replenishment delivery - ZPicking confirmation idoc sucessfully picked the outbound delivery and post the GI.  The material was cut and it was batch splitted. - Then it was p

  • Duet has encountered an error during Approve , Reject Reassign the workflow

    Hi, We have implemented DUET with two scenario (LEMA & WOMA) in our organization. When try Approve , Reject or Reassign the Duet work flow Item  Duet has encountered an error . The scenario was working fine earlier. Suddenly the error has start comin

  • User Define Function issue

    Hi all             i am doing Idoc to file Scenario.my problem is in message mapping.. sometime at (IDOC) source one segment get repeated 2 times. like           E1IDPUK2   (a,b,c)         E1IDPUK2   (a,b,c)...              <b> but i want the particu

  • Amount field in Quote Products

    Hi Can you change the built-in Amount field in Quote Products to add a calculation from a custom field? Kind Regards Andrea

  • Source Code (Table)

    Hai Frnd's     There are tables (TADIR,TRDIR) which contains the details about the devclass and the program.from which table the source code of the particular program can be retrieved. Thanks in Advance Suganya