Dynamic call to a partnerlink using WSIF.

Hi,
I've already seen the "DynamicPartnerLink" sample and the "Making BPEL Processes Dynamic" cookbook.
I want to do something similar, but using WSIF. I want to be able to change binding information in runtime to be able to call Java/EJB using WSIF.
According to a Edwin (ekhodaba) post, "The only think that you can change at runtime in the address/binding information". But I don't know if this is only possible for SOAP binding.
First, I tried a similar approach to the Dynamic cookbook and example. I had a parterlink to a service with Java binding information. This worked fine. Then I changed the service name (like in the cookbook using a reference variable to change the service name, no address) to use another service with the same binding information but a different implementation Java class and I got a binding exception.
Eventually I will also wanto to do that with EJB.
Is there any way to change in runtime the WSIF binding information to call a EJB/Java class ? Any suggestions to get it? I want to have several Java classes or EJB with the same interface and be able to choose in runtime which one to call using WSIF.
Furthermore, It'd be interesting to change the Java/EJB classname, jndiName, initialContextFactory, jndiProviderURL, etc. (e.g. reading from DB or a configuration file)
Strictly speaking, this information is not needed in development time, it's only binding information so it is only useful in runtime.
I've also tried a service per Java class, but the service name can't be changed in the partnerlink in runtime, you'll get a binding error.
Thanks.

Hi, sure you will need to register your private certificate with ADF Mobile's embedded JVM. This is a security mechanism - the JVM we embed will only recognize certificates from well-know CA out of box. However, you can register your private certificate with the JVM. The steps are described in the ADF Mobile Developer Guide: http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/security.htm#CDDCCDFF.
Please note that you will need to be very careful when registering the JVM - extra spaces for example will cause certificate error and it could be hard to diagnose. Please ensure all the fields matches exactly with your private certificate's fields.
Thanks,
Joe Huang

Similar Messages

  • How to check if internal table exists in dynamical called subroutine ?

    Hi,
    in a dynamically called subroutine i'm using a internal table, but in some calls this table is not exist.
    How can i check in the code whether the internal table exist or not ?
    regards,
    Hans

    In Horst Keller's blog /people/horst.keller/blog/2005/05/27/abap-geek-10--everything-functions-150-but-how my issue is talked about :
    All other parameters are handled in a way as they were declared as global data objects in the top include of the function group, that can be used only during the execution of the function module: They are visible throughout the function group but you can access them only while the function module is active. If you access such a parameter and the respective function module is not executed, you get the runtime error GETWA_NOT_ASSIGNED (Why? Well, technically thos guys are represented via field symbols which are valid only during the runtime of the function module).
    The code is in SD pricing. Sometimes the code is called from function module PRICING_BUILD_XKOMV or PRICING_SUBSCREEN_PBO where TKOMV is defined as globalized parameter.
    And sometimes it is called from function module PRCING_CHECK where TKOMV is NOT defined as parameter.
    In the call of last function the dump occures on the ASSIGN statement :
         data: ls_tkomv like line of tkomv,
                  lv_tablename(30) type c value 'TKOMV[]'.
        field-symbols: <lfs> type any table.
         assign (lv_tablename) to <lfs>.
         if <lfs> is assigned.
    Any suggestions to solve the issue ?
    regards,
    Hans

  • Custom run-time menus within dynamically called sub-VIs?

    How do you use custom run-time menus within sub-VIs that have been dynamically called? I'm using Labview 6.02.

    Since you say within subVIs, I am assuming that you have the subVIs open their front panels when called. Each subVI must have the RTM defined when the subVI is created. You can use the same RTM for each one (use the open function in the menu editor).
    If necessary, you can dynamically add and remove menu items using the Application Control->Menu functions. I have some subVIs that add items to the main RTM when they are loaded and remove the items when they finish.
    Rob

  • Upgrade : Issue with Specical character being used in 4.6C ( Dynamic calls)

    Hi ,
      We are working on Upgrade from 4.6C to ECC6.0 . in SPAU phase we are facing an issue :
    When we are trying to see the variants from the program, it says that the program contains Syntax Error
    "In Unicode programs, the "&" character can not appear in names as it does here in the name 'op&xv0' "
    The 'op&xv0' is a form. we tried changing the form name, but couldnt get the PERFORM stmt for the form and it might be a dynamic call. what can we do for this type of programs?
    Please also suggest how we can identify the places where that particular Subroutine is being called.
    Thanks & Regds
    Teja

    This is probably an operation defined in Tcode PE04. You can change the operation subroutine name and then modify the code accordingly in the report.
    Go to PE04 and put in operation name, suposedly &xv0.
    Instead of using standard name suggested by SAP use custom name (for example opYvx0) and then change in the report as well and it should be ok.

  • 10.1.3.5 - Using WSIF binding in BPEL

    Hi,
    I'm trying to use WSIF binding for a java web service in my bpel process. I'm following the steps given at http://www.oracle.com/technology/pub/articles/bpel_cookbook/juric.html
    I used Jdev to create wsdl for my java class and enabled WSIF bindings. I copied the generated wsdl to my bpel process and used it to create a partnerlink. Now I want to generate XML facade classes using schemac compiler. I modified the BPEL build.xml to call schemac for my generated wdl. The schemac errors out with following message:
    [schemac] schemac> parsing schema file 'C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3/bpel/WsifBindingDoc.wsdl' ...
    [schemac] schemac> Loaded schemas from wsdl located at C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3/bpel/WsifBindingDoc.wsdl
    [schemac] warn: The W3C datatype 'base64Binary' is not currently supported by Collaxa schemac.
    [schemac] warn: The W3C datatype 'hexBinary' is not currently supported by Collaxa schemac.
    [schemac] warn: The W3C datatype 'time' is not currently supported by Collaxa schemac.
    [schemac] schemac>WARNING: schemac tool has been deprecated, please use jaxb compliant compiler (e.g. oracle jaxb) to generate java classes from xml schema.
    [schemac] schemac> generating XML business document ...
    [schemac] schemac> compiling XML business documents ...
    BUILD FAILED
    C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3\build.xml:41: Java compilation failed.
    Failed to compile file(s) //list of files here...
    Exception reported is: F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\ENTITIES.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.ENTITIES value = new org.xmlsoap.schemas.soap.encoding.ENTITIES(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\IDREFS.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.IDREFS value = new org.xmlsoap.schemas.soap.encoding.IDREFS(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\NMTOKENS.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.NMTOKENS value = new org.xmlsoap.schemas.soap.encoding.NMTOKENS(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\NOTATION.java:84: Undefined variable: childElement
    javax.xml.namespace.QName value = super.getQNameValue(childElement,childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\QName.java:84: Undefined variable: childElement
    javax.xml.namespace.QName value = super.getQNameValue(childElement,childValue);
    ^
    5 errors
    Please verify that file /*list of files here */ is valid java file or if all required libraries are included in your classpath.
    classpath: F:\Jdev10135\jdev\lib\ojc.jar;F:\Jdev10135\ant\lib\ant-oracle.jar;F:\Jdev10135\integration\lib\orabpel.jar;F:\Jdev10135\integration\lib\orabpel-ant.jar;F:\Jdev10135\integration\lib\orabpel-common.jar;F:\Jdev10135\integration\lib\orabpel-thirdparty.jar;F:\Jdev10135\webservices\lib\orawsdl.jar;F:\Jdev10135\lib\xmlparserv2.jar;F:\Jdev10135\lib\xml.jar;F:\Jdev10135\j2ee\home\lib\oc4j-internal.jar;F:\Jdev10135\j2ee\home\lib\adminclient.jar;F:\Jdev10135\integration\bpm\support\files;F:\Jdev10135\jdev\lib\jdev.jar;F:\Jdev10135\ant\lib\xml-apis.jar;F:\Jdev10135\ant\lib\xercesImpl.jar;F:\Jdev10135\ant\lib\jakarta-oro-2.0.8.jar;F:\Jdev10135\ant\lib\commons-net-1.3.0.jar;F:\Jdev10135\ant\lib\ant.jar;F:\Jdev10135\ant\lib\ant-xslp.jar;F:\Jdev10135\ant\lib\ant-xalan1.jar;F:\Jdev10135\ant\lib\ant-weblogic.jar;F:\Jdev10135\ant\lib\ant-vaj.jar;F:\Jdev10135\ant\lib\ant-trax.jar;F:\Jdev10135\ant\lib\ant-swing.jar;F:\Jdev10135\ant\lib\ant-stylebook.jar;F:\Jdev10135\ant\lib\ant-starteam.jar;F:\Jdev10135\ant\lib\ant-oracle-adfp.jar;F:\Jdev10135\ant\lib\ant-nodeps.jar;F:\Jdev10135\ant\lib\ant-netrexx.jar;F:\Jdev10135\ant\lib\ant-launcher.jar;F:\Jdev10135\ant\lib\ant-junit.jar;F:\Jdev10135\ant\lib\ant-jsch.jar;F:\Jdev10135\ant\lib\ant-jmf.jar;F:\Jdev10135\ant\lib\ant-jdepend.jar;F:\Jdev10135\ant\lib\ant-javamail.jar;F:\Jdev10135\ant\lib\ant-jai.jar;F:\Jdev10135\ant\lib\ant-icontract.jar;F:\Jdev10135\ant\lib\ant-commons-net.jar;F:\Jdev10135\ant\lib\ant-commons-logging.jar;F:\Jdev10135\ant\lib\ant-apache-resolver.jar;F:\Jdev10135\ant\lib\ant-apache-regexp.jar;F:\Jdev10135\ant\lib\ant-apache-oro.jar;F:\Jdev10135\ant\lib\ant-apache-log4j.jar;F:\Jdev10135\ant\lib\ant-apache-bsf.jar;F:\Jdev10135\ant\lib\ant-apache-bcel.jar;F:\Jdev10135\ant\lib\ant-antlr.jar;F:\Jdev10135\jdk\lib\tools.jar;F:\Jdev10135\jdev\bin
    Any help on how to get rid of this error would be very useful.
    thanks,
    Mrityunjay
    Edited by: mrityunjay_kant on Nov 26, 2009 1:51 AM

    Did you check http://www.oracle.com/us/products/enterprise-manager/039537.pdf ?
    and http://www.oracle.com/technetwork/oem/soa-mgmt/index.html
    MANAGEMENT PACK FOR WEBCENTER SUITE
    Regards
    Rob
    http://oemgc.wordpress.com

  • Dynamically called VI becomes broken inside an executable. Error 1003 from "Open VI Reference".

    Here's the problem. Dynamically called VI becomes broken inside an executable in debug executable mode Error 1003 is occuring from "Open VI Reference" Block. The computer has all of the necessary drivers, NI-VISA and NI-DAQmx. This executable is a new release of software that currently works on the PC in question. I can using NI-VISA Remote Server control the instruments from my PC using the executable. But when I put the executable on the PC I am getting this error. The only way I have been able to get this to work properly is to build the executable from the console I believe the project was created in, note that the project file has been moved to a network drive and it still works. All of the stations I have opened the project in show the VI that is being called is runnable. I've tried building the executable from the console I am deploying to and the same thing happens.
    I am honestly at a loss for ideas why this is occuring. Is this something about the way LabView works internally that may be causing this problem?
    I have trolled this forum for idea's and none have made sense to me.
    Any input would be greatly appreciated.
    -Nate

    Two ideas:
    Mass compile the project to ensure all linkages are ironed out
    Include the dynamically launched VI's into the "Always Included" section of the build spec
    Report back on if either of these actions solves your problem.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to edit a program dynamically called from another program

    Hi all,
    Can anyone help me in coding for a program which call's another
    report dynamically from selection screen(for instance z_dynam_called)
    and retreive the whole content of the dynamically called program(z_dynam_called)
    into an internal table and replace the contents of the internal table  with some new code and put it back in z_dynam_called and save it.
    Thanks in advance.
    Needful will be rewarded with points

    Hi,
    Follow this:
    1) U can pass data from one program to another in a single login using SAP memory......
    2) u can create a DBtable update dat table using ur first pgm and fetch from second program.....
    3) U can pass the report output using EXPORT TO MEMORY addition and get it back using IMPORT FROM MEMORY..........
    Eg:
    Export the selected rows to the next program
    EXPORT final TO MEMORY ID 'ABC'.
    CALL TRANSACTION 'XXX'.
    XXX is the tcode for the other program where u want to import the values.
    In the second program
    INITIALIZATION.
    IMPORT the internal table from the first program
    IMPORT final FROM MEMORY ID 'ABC'.
    Thanks and Regards,
    Reward If Helpful

  • Invoking a webservice using WSIF Binding

    Hi All,
    I have few queries regarding usage of WSIF Binding in BPEL
    My understanding was it is useful for calling Java Classes from BPEL Process.
    Can I use WSIF Binding for invoking the webservice ?
    Or the use of WSIF Binding is limited to invoking Java classes.
    If we can invoke web service , Can you please let me know how to do it?
    you can mail your replies to [email protected]
    Any help will be immensely appreciated..
    Regards,
    Bhanu

    First of all thanks to Jens and clemens.
    From both of your replies, i learnt that we can call webservice from BPEL process using WSIF binding .
    Can you provide me a bpel sample where we're using wsif binding for invoking web service?
    I have one more doubt:
    "WSIF java binding means, which was used to call java classes. WSIF soap binding used to call web services"
    Is my understanding correct?
    Can you explain a bit on WSIF Java binding?
    Regards,
    Bhanu

  • DYNAMIC CREATION OF LINE SERIES USING ACTIONSCRIPT

    There's something wierd about flex or im doing something
    wrong?
    - when i create a line series manually using mxml and specify
    a id for the series, it works.
    - similarly when i try to dynamically create a line series
    using actionscript & define an "id" property, flex does not
    understand! what am i doing wrong?
    code for reference:
    private function addSeries(series:Array,
    yField:String,id:String) // addseries(series,"date","1000")
    var ls:LineSeries= new LineSeries();
    var stroke:Stroke = new Stroke()
    ls.yField = yField;
    ls.xField="ts"
    ls.dataProvider=dp
    ls.id=id // tried defining it dynamically, but flex does not
    find
    this.mychart.series.push(ls)
    THIS IS THE ERROR I GET : "TypeError: Error #1010: A term is
    undefined and has no properties."

    I see... I played around with the line chart ...
    Hopefully this helps... if not forgive me...
    I know why you are trying to use the id property which i
    agree doesn't work.
    since the series is an array in your lineChart use the index
    to set the visible property false/true.
    lineChart.series[0].visible = true/false;
    <mx:Lineseries id="a1" visible="true"
    dataProvider="{whatever}" />
    <mx:Lineseries id="a2" visible="false"
    dataProvider="{whatever}"/>
    create a function called init();
    public function init():void
    var lineS1:LineSeries = new LineSeries();
    lineS1.visible = true/false;
    lineChart.series.push(lineS1);
    var lineS2:LineSeries = new LineSeries();
    lineS2.visible = true/false;
    lineChart.series.push(lineS2);
    ... and the key is to call this init function on initialize
    event...NOT on createComplete event
    <mx:LineChart.... initialize="init()" .... />
    and to show both lines... call this function...
    public function showLines():void
    lineChart.series[0].visible = true;
    lineChart.series[1].visible = true;
    Hope this helps....

  • Dynamic call for records in a table

    hI,
    Im having a ztable, the structure is as follows:
    tabold fldold tabnew fldnew
    The records in this table is are:
    1.yvbap  posnr xvbap posnr
    2.yvbak  auart xvbak auart
    3.yvbak  augru xvbak augru.
    Now, i have to use this table dynamically to check each and every record in the program:mv45afzz.
    So, my problem is that, i have to dynamically pass these records which contains table name and its field name.
    i can write as: xvbap-posnr = yvbap-posnr for all the three records (the values will come from sales order tranx, report: mv45afzz)
    but in future if the records are added then i have to again change the code, so this shouldn't happen.
    It should dynamically call all the records in this table and check the condition.
    Thanx
    Rohith

    Hello Rohith
    What is your question???
    You described a few ingredients of your scenario (not all of them) and do not really explain your requirements.
    Given the descriptions of the Z-table fields I assume you need to check whether OLD values are equal to NEW values.
    If this assumption is correct then the solution is quite simple (except for XVBAP / YVBAP: Does this mean single entries or looping over all entries?)
    DATA:
      lt_ztable     TYPE STANDARD TABLE OF zstructure,
      ls_ztable     TYPE zstructure.
      FIELD-SYMBOLS:
        <lt_tab>     TYPE table,
        <ls_struct_old>    TYPE any,
        <ls_struct_new>   TYPE any,
        <ld_old>    TYPE any,
       <ld_new>    TYPE any.
    " Read entries from z-table
      SELECT * FROM ztable INTO table lt_ztable.
      LOOP AT lt_ztable INTO ls_ztable.
        ASSIGN (ls_ztable-tabold) TO <ls_struct_old>.
        ASSIGN (ls_ztable-tabnew) TO <ls_struct_new>.
        ASSIGN COMPONENT (ls_ztable-fldold) OF STRUCTURE <ls_struct_old> TO <ld_old>.
        ASSIGN COMPONENT (ls_ztable-fldnew) OF STRUCTURE <ls_struct_new> TO <ld_new>.
        IF ( <ld_old> = <ld_new> ).
          " do something...
        ENDIF.
      ENDLOOP.
    For the sake of simplicity I did not add the required statements for checking successful ASSIGN's.
    Regards
      Uwe

  • Error on writing a connector using WSIF to provision users.

    Hello All,
    I am writing a connector to provision users using WSIF. Everything works great through my IDE (eclipse on Windows XP), but when I drop the jar, map the adapter (using OIM 9.0.3, RH4, and weblogic 8.1 SP6) and invoke a process task I get the following error:
    The WSIFDefaultMapper class exists in the wsif.jar file and as far as I can tell, only one instance of that class file exists (did a grep on all jar files).
    Any pointers will be appreciated.
    java.lang.reflect.InvocationTargetException
    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:324)
    Caused by: org.apache.wsif.WSIFException: Unable to create new mapper; nested exception is:
    java.lang.ClassNotFoundException: org.apache.wsif.mapping.WSIFDefaultMapper
    at org.apache.wsif.mapping.WSIFMapperFactory.newMapper(WSIFMapperFactory.java:107)
    at org.apache.wsif.mapping.WSIFMapperFactory.newMapper(WSIFMapperFactory.java:52)
    at org.apache.wsif.base.WSIFServiceImpl.overrideMapper(WSIFServiceImpl.java:1106)
    at org.apache.wsif.base.WSIFServiceImpl.init(WSIFServiceImpl.java:938)
    at org.apache.wsif.base.WSIFServiceImpl.<init>(WSIFServiceImpl.java:299)
    at org.apache.wsif.base.WSIFServiceFactoryImpl.getService(WSIFServiceFactoryImpl.java:274)
    at com.netapp.webservice.DynamicInvoker.invokeMethod(DynamicInvoker.java:213)
    at com.netapp.webservice.DynamicInvoker.WSIF(DynamicInvoker.java:130)
    ... 56 more
    Caused by: java.lang.ClassNotFoundException: org.apache.wsif.mapping.WSIFDefaultMapper
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:199)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.apache.wsif.mapping.WSIFMapperFactory.newMapper(WSIFMapperFactory.java:100)
    ... 63 more
    com.thortech.xl.dataobj.util.tcAdapterTaskException: Unable to create new mapper; nested exception is:
    java.lang.ClassNotFoundException: org.apache.wsif.mapping.WSIFDefaultMapper
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpNTAPSERVICENOW.INSERT(adpNTAPSERVICENOW.java:108)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpNTAPSERVICENOW.implementation(adpNTAPSERVICENOW.java:50)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    Thanks,
    Sunny
    Edited by: user11989584 on Dec 1, 2009 4:36 PM

    I have narrowed this down to the following (some of this is a repetition, I am copying and pasting my post from a WSIF forum):
    I am using wsif wsif-2.0.1_IB3 to connect to a webservice to create user accounts. Everything works great in Eclipse.
    When I deployed my jars (application jars, wsif and dependencies) to weblogic 8.1 sp6 and generate a task through OIM that calls this adapter, I run into the following error:
    org.apache.wsif.WSIFException: Unable to create new mapper; nested exception is:
    java.lang.ClassNotFoundException: org.apache.wsif.mapping.WSIFDefaultMapper
    Caused by: java.lang.ClassNotFoundException: org.apache.wsif.mapping.WSIFDefaultMapper
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:199)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.apache.wsif.mapping.WSIFMapperFactory.newMapper(WSIFMapperFactory.java:100)
    The WSIFMapperFactory.class exists in wsif.jar file and makes a call to newMapper but is unable to load org.apache.wsif.mapping.WSIFDefaultMapper that is in the same wsif.jar file.
    public static WSIFMapper newMapper() throws WSIFException {
    return newMapper(false);
    The line that it fails on is Class c = Class.forName(mapperClassNameBuffer.toString(), true, Thread.currentThread().getContextClassLoader());
    from the following code snippet in WSIFMapperFactory.class file
    try {
    Class c =
    Class.forName(
    mapperClassNameBuffer.toString(),
    true,
    Thread.currentThread().getContextClassLoader());
    return (WSIFMapper) c.newInstance();
    } catch (ClassNotFoundException cnf) {
    throw new WSIFException("Unable to create new mapper", cnf);
    } catch (Exception e) {
    throw new WSIFException("Unable to create new mapper", e);
    Any ideas on how to fix this?
    I modified some of the WSIF code to try using the following:
    Class c = Thread.currentThread().getContextClassLoader().loadClass(mapperClassNameBuffer.toString()); but it had the same effect.
    Again, the same code path works great standalone in Eclipse.
    Any help/pointers would be appreciated.

  • Dynamic call for a ref cursor: ORA-21779

    Hi,
    Here is an environment:
    create or replace
    PACKAGE PKG_GETDATA AS
    TYPE cursor_type IS REF CURSOR;
    Procedure SimpleGet (cData In Out Cursor_type);
    Procedure DynamicGet (cData In Out Cursor_type);
    END PKG_GETDATA;
    create or replace
    PACKAGE BODY "PKG_GETDATA" AS
    Procedure SimpleGet (cData In Out Cursor_type) As
    Begin
    Open cData For
    Select 1 from Dual;
    End SimpleGet;
    Procedure DynamicGet (cData In Out Cursor_type) As
    Begin
    Execute Immediate 'Begin PKG_GETDATA.SIMPLEGET(:1); End;'
    Using In Out cData;
    End DynamicGet;
    END PKG_GETDATA;
    So- first simple get works fine:
    Declare
    cData PKG_GETDATA.Cursor_type;
    aNumber Number;
    Begin
    PKG_GETDATA.SimpleGet (cData);
    LOOP
    FETCH cData INTO aNumber;
    EXIT WHEN cData%ROWCOUNT > 5 OR cData%NOTFOUND;
    dbms_output.put_line (aNumber);
    END LOOP;
    close cData;
    End;
    BUT dynamic call does not works at all!:
    Declare
    cData PKG_GETDATA.Cursor_type;
    aNumber Number;
    Begin
    PKG_GETDATA.DynamicGet (cData);
    LOOP
    FETCH cData INTO aNumber;
    EXIT WHEN cData%ROWCOUNT > 5 OR cData%NOTFOUND;
    dbms_output.put_line (aNumber);
    END LOOP;
    close cData;
    End;
    It throws ORA-21779 exception; what is more- it does work on 10.2 db version but does not work on 11.2 version! Could anyone explain that?
    Regards
    Bartlomiej D.

    Hi,
    Believe me, it may be very handful while working with handlers.
    Anyway- could anyone help me on that?
    Regards
    Bartlomiej D.

  • Dynamic call of a vi with a reference stored in a global variable

    Hello,
    I am trying to program a VI which calls DAQmx functions in some cases, in other cases DAQmx may not even be installed. To prevent a broken arrow on machines where DAQmx is not installed, I want to use a sub-VI containing the DAQmx function calls which is called dynamically by a main VI. For speed I want to prevent continuous opening and closing the VI reference, so I want to store the reference to the sub VI in a global variable. In this variable I also want to store the Analog Input Task. I want to use an initialization VI to write the VI reference of the sub VI and to configure and start the Analog Input Task and write the Task ID to that Global, too. In that way I was hoping to be able to improve the performance of the dynamic calls and the Task calls. BUT - when I write the refererence and task to the Global and read it out from another VI, the reference is not valid anymore and the Analog Input task is also not valid, even if both the initialization VI and the Global are still open (but not running). Does somebody have an idea how to solve that? It is a bit difficult to describe, so here is what I want to do in a shorter description :
    - run a initialization VI which
      defines a reference to a sub VI which will be called dynamically later on
      and a AI task ID definining a DAQmx physical channel configuration to use for subsequent read cycles
      and writes both (VI reference and AI task) to a global variable
    - run another VI which
      reads the VI reference of the VI to call dynamically from that global
      runs the corresponding VI dynamically
      the dynamically called VI performs an AI task corresponding to the DAQmx task ID read from that global (it reads an analog value for instance from the  
      physical channel configured by that AI task) 
    Why all that? To prevent creating and destroying the VI reference for each call of the sub VI for speed. And to use the configured DAQmx channel for subsequent read tasks only if the subVI is called dynamically - if it is not, then the application will not see the DAQmx calls and therefore no broken arrow will occur if no DAQmx is installed on the machine.
    Can somebody help me with this? Why can't I store and read out the reference to the sub VI to/from a global, and why is the AI task not valid when read out from the dynamically called sub VI? I am somewhat lost with all that...
    Thanks in advance,
    Gabs

    Uh - I am almost getting crazy with that
    Kevin, that solution is the right one for programming an application. In that case everything will work fine. But during testing, it is more convenient to call all VIs from their front panels one after another. That's how I'm doing it for everything that needs to be exchanged between such VIs: store them either in a global or in a functional global variable. In that way the user can "play around" with the VIs without wiring them together in a main VI. Therefore, after some thinking I liked Davids idea with that daemon VI (I solved that by adding a boolean in the initialization VI to choose if that daemon is necessary - during testing phase - or not - when using the VIs in a main application). BUT:
    David: It does not work!!! I have exactly done what you proposed and this daemon VI is really running, having a True/False frame with a constant of False wired to the selector and holding both the functional global and the dynamically to call VI in the True frame. In that way, after initialization is finished, both VIs are still running but idle. Anyway, when I read back the value of the reference or the DAQmx task, it is invalid again!
    That really costs just too much time. Does anybody have any idea what to do now? David, I was hoping that your suggestion would solve the problem, because it would be logical that it would - why then is LabVIEW destroying the reference and task anyway even if that daemon VI containing the functional global is still running???
    Regards,
    Gabs

  • Dynamic call of a static method of an static attribute

    Hi all,
    is it possible to call dynamically a static method of a static attribute of a class.
    The statement without dynamic call would look like this:
    cl_test_class=>static_attribute=>static_method( ).
    I would like to do it like this:
    ('CL_TEST_CLASS')=>static_attribute=>static_method( ).
    Netiher the one nor the other way works for me - I'm getting the error "The notation used is reserved for business object classes".
    Regards, Stefan

    I guess, it is not possible to call method using the short form (parameters in brackets) is not possible in Dynamic Access. You may need to get the attribute first and then call the method.
    CLASS lcl_main DEFINITION.
      PUBLIC SECTION.
        CLASS-DATA: o_same TYPE REF TO lcl_main.
        METHODS: run.
    ENDCLASS.                    "lcl_main DEFINITION
    CLASS lcl_main IMPLEMENTATION.
      METHOD run.
        WRITE: 'success'.
      ENDMETHOD.                    "run
    ENDCLASS.                    "lcl_main IMPLEMENTATION
    START-OF-SELECTION.
      DATA: lo_same TYPE REF TO lcl_main.
      CREATE OBJECT lcl_main=>o_same.
    *  lcl_main=>o_same=>run( ).
      TRY.
          FIELD-SYMBOLS: <fs> TYPE REF TO lcl_main.
          ASSIGN ('LCL_MAIN')=>('O_SAME') TO <fs>.
          CALL METHOD <fs>->('RUN').
        CATCH cx_root.
      ENDTRY.
    Regards,
    Naimesh Patel

  • How to dynamically call image  in PDF for Acrobat ver 8.1 onwards?

    Hi Experts,
    I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/
    We are now using Acrobat 8.1.1. Please refer following thread.
    http://kb2.adobe.com/cps/405/kb405270.html
    From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.
    However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.
    Click on the Layout tab and choose None for the Caption position.
    u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
    u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client
    write following code in wddoinit
    try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
    Please let me know what is the alternate method for Adope ver 8.1.1
    Regards,
    Gary

    Hi Gary,
    First you upload the image in SAP through se78.then write the below code in your adobe form interface.
    data :  v_object type  TDOBJECTGR value 'GRAPHICS',
            v_id  type TDIDGR  value 'BMAP',
            v_btype type TDBTYPE value 'BCOL',
            V_FIELD TYPE XSTRING.
    V_NAME = 'ZW_DEVMAN_LOGO'.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = v_object " 'GRAPHICS'
    p_name = v_name " Name of the logo as in se78
    p_id = v_id " 'BMAP'
    p_btype = v_btype " 'BCOL' ( whether the image is in color or black and white )
    RECEIVING
    p_bmp = v_field
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    g_logo = v_field.
    Declare g_logo as xstring in global data.
    In context of the form make one graphic element with field g_logo and mime type BMP.It will work.
    Regards,
    Simi A M
    Edited by: amsimi on Jan 26, 2011 5:30 AM

Maybe you are looking for

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading

  • Please see if you can help me with my Disk Error

    I have read through a lot of issues on getting the disk error message and I cannot find the solution for me, so I will try posting this... I have a new IMac 20" Intel 2.0 with 2 GB Ram and 500 GB Hard Drive with OSX 10.5 I printed the instructions fo

  • Define selection screen for ldb_process

    Hi I'm using the call function ldb_process for KDF(lfa1, lfb1, bsik), the trouble is that the information its different than if i do it on a normal report defining the logical database kdf and selection screen 903. I find that the difference is becau

  • OdiStartScen in async mode: variables lost in execution queue

    I have the following case: - a scenario must be called for each row in a database table - this scenario has a variable, declared in the scenario parent package: variable values are read from the table - rows are more than the "maximum number of sessi

  • Issue with artists with one album an non album tracks.

    Here is my issue: on the ipod I should see this: music > artists > THE ARTIST > All or Album1 That's the logical order, but this is what my iPod does music > artists > THE ARTIST > Album1 I know I have tracks that are not a part of Album1 ( I see the