C API - JmsTextMessage problem

I'm having an issue where I cannot get the text back out of a JmsTextMessage. I recieve a -1 every time. At first I assumed that the JmsMessage I was recieving off of the server was invalid, however when I tried to just create a new one and access it, I get the same problem.
          JmsString content;
          JmsString text;
          /* create a text message */
          text = toJmsString(message->content);
          err_code = JmsSessionTextMessageCreate(msgInterfaceHandle->pubSession, &text, &jmsMessage,0);
          if(err_code != JMS_NO_ERROR) {
          sprintf(result, "Failed to create a JmsTextMessage for topic %s! Message %s NOT published!", topic, message->metadata.docId);
          printErrorMessage("IsiMessagingPublish", err_code, result);
          return ISI_MESSAGING_ERROR_CODE_JMS_FAIL;
               err_code = JmsTextMessageGetText(jmsMessage, &content, 0);
          Any ideas why I can't seem to get the text back out of one of these messages?

The libraries are not linked automatically -- the setting you have changed is fine, but just tells Visual Studio where to look for libraries. It doesn't make your application link against the library.
To link in the library, right-click on your project, go to properties, expand linker, go to input, and put "libdb47.lib" the additional dependencies field.
Regards,
Michael Cahill, Oracle Berkeley DB.

Similar Messages

  • Image Processing (JAI-API) Instalation problem

    I am developing the software in Image processing (remote sensing). I am facing the following problem when i run the program.
    C:\java_ex>javac SimpleJAITest.java
    SimpleJAITest.java:23: cannot resolve symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    ScrollingImagePanel panel1, panel2;
    ^
    SimpleJAITest.java:36: cannot resolve symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    panel1 = new ScrollingImagePanel(loadImage, 300, 300);
    ^
    SimpleJAITest.java:78: cannot resolve symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    panel2 = new ScrollingImagePanel(outImage, 300, 300);
    ^
    Note: SimpleJAITest.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    3 errors
    Please send the information regarding installation of Java Advance Imaging kit
    and link to download JAI API
    Also send the solution of this problem

    C:\java_ex>javac SimpleJAITest.java -Xlint:deprecation
    SimpleJAITest.java:23: cannot find symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    ScrollingImagePanel panel1, panel2;
    ^
    SimpleJAITest.java:29: warning: [deprecation] set(java.lang.Object,java.lang.Str
    ing) in javax.media.jai.ParameterBlockJAI has been deprecated
    loadPB.set(argv[0], "hs");
    ^
    SimpleJAITest.java:36: cannot find symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    panel1 = new ScrollingImagePanel(loadImage, 300, 300);
    ^
    SimpleJAITest.java:39: warning: [deprecation] show() in java.awt.Window has been
    deprecated
    window1.show();
    ^
    SimpleJAITest.java:78: cannot find symbol
    symbol : class ScrollingImagePanel
    location: class SimpleJAITest
    panel2 = new ScrollingImagePanel(outImage, 300, 300);
    ^
    SimpleJAITest.java:81: warning: [deprecation] show() in java.awt.Window has been
    deprecated
    window2.show();
    ^
    SimpleJAITest.java:87: warning: [deprecation] set(java.lang.Object,java.lang.Str
    ing) in javax.media.jai.ParameterBlockJAI has been deprecated
    savePB.set(argv[1], "filename");
    ^
    SimpleJAITest.java:88: warning: [deprecation] set(java.lang.Object,java.lang.Str
    ing) in javax.media.jai.ParameterBlockJAI has been deprecated
    savePB.set(argv[2], "format");
    ^
    3 errors
    5 warnings

  • ABAP API Connection Problem

    Hi folks,
    I am working with the MDM ABAP API and there are some errors that do not make any sense to me.
    Here is a list with the technical information:
    MDM 5.5 SP 5 (5.5.40.83)
    SAP NetWeaver 2004s (700)
    MDM API 555/700
    I have set up the Repository information in MDMAPIC, using a new created provider of the type CL_MDM_PROVIDER_55_SP05_PL00 ( MDM5.5  SP05 Patch 0, Server Build  5.5.40.79  -  5.5.40.xx ).
    I then have tried to establish the connection to the server and repository and so on according to the HowTo Guides.
    When I finished yesterday, I managed to connect to my local MDM Server and to retrieve the names of the mounted repositories, but I was not able to retrieve records from a certain repository. When I wanted to solve that problem today, I was not able to connect to my MDM server anymore. There have been no changes in the coding or the configuration since then, only the MDM server has been restarted and the repository has been reloaded. But apart from that, nothing has changed but still I am not able to establish the connection anymore ( Connection refused ). Then I have tried to connect to another MDM server, but there I get another error ( Connection is not trusted ), although I have rechecked a dozen times that there is the allow.ip with the proper ID of my SAP system and the according user in the MDM repository.
    From time to time, the errors change without changing anything else, just by trying to execute it a couple of times. I have figured out, that sometimes I get an error out of the above mentioned provider class ( CL_MDM_PROVIDER_55_SP05_PL00 ). Is it possible, that the MDM API is not working properly with the PL00?
    Hints are appreciated a lot...!
    Thanks and best regards,
    Sabine

    Hi,
    Check whether the server is down or not. If the server is down, u will get the same error message
    regards,
    Nikhil

  • MDM ABAP API Performance Problems

    Hi all,
    we developed a custom transaction into our ECC 6.0 system to remotely retreive data coming from MDM (7.1 SP05) and show them to the user. The 2 systems phisically reside in different datacenters, so running in the same WAN but in 2 different AD domains and 2 different ip networks.
    In short the transaction is working using the standard MDM ABAP API functionalities and getting the MDM data using the following methods:
          CALL METHOD lr_api->mo_accessor->connect
          CALL METHOD lr_api->mo_core_service->query
          CALL METHOD lr_api->mo_core_service->retrieve
          CALL METHOD lr_api->mo_accessor->disconnect.
    This is working, but with awful performances. for example to get a subset of materials (around 500 codes) it takes more than 1 minute, and the quantity of data transfered from MDM to ECC (around 30 KB) is not justifying this time.
    Please be so kind to suggest any kind of activity that I can perform to improve the situation.
    Thanks in advance.

    I am trying to retreieve date from MDM to ECC using ABAP API.I am getting the below dump.
    Short text
        An exception occurred that was not caught.
    What happened?
        The exception 'CX_MDM_PROVIDER' was raised, but it was not
         along
        the call hierarchy.
        Since exceptions represent error situations and this error
        adequately responded to, the running ABAP program
         'CL_MDM_PROVIDER_71_SP00_PL00==CP' has to be
        terminated.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can loo
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_MDM_PROVIDER', was not caught in
    procedure "GET_LOC_SUPP" "(METHOD)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Internal error: field 'SEARCH_GROUPS' not found; contact your system
    administrator
    Please check at this point I am getting dump:
    LT_SEARCH_TUPLE_PATH
        Table IT_1806[0x12]
        \CLASS=CL_MDM_PROVIDER_71_SP00_PL00\METHOD=IF_MDM_CORE_SERVICES~QUERY\DATA=LT_SEARCH_TUPLE_PAT
        Table reference: 1612
        TABH+  0(20) = 000000000000000007000000579D710000000000
        TABH+ 20(20) = 0000064C0000070E000000000000000CFFFFFFFF
        TABH+ 40(16) = 04000138000F44A0000424E403000000
        store        = 0x0000000000000000
        ext1         = 0x07000000579D7100
        shmId        = 0     (0x00000000)
        id           = 1612  (0x0000064C)
        label        = 1806  (0x0000070E)
        fill         = 0     (0x00000000)
        leng         = 12    (0x0000000C)
        loop         = -1    (0xFFFFFFFF)
        xtyp         = TYPE#000300
        occu         = 4     (0x00000004)
        accKind      = 1     (ItAccessStandard)
        idxKind      = 0     (ItIndexNone)
        uniKind      = 2     (ItUniNo)
        keyKind      = 1     (default)
        cmpMode      = 12    (ILLEGAL)
        occu0        = 1
        stMode       = 0
        groupCntl    = 0
        rfc          = 0
        unShareable  = 0
        mightBeShared = 0
        sharedWithShmTab = 0
        isShmLockId  = 0
        isUsed       = 1
        isCtfyAble   = 1
        hasScndKeys  = 0
        hasRowId     = 0
        scndKeysOutdated = 0
        scndUniKeysOutdated = 0
    LV_MESS
        field 'SEARCH_GROUPS' not found
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        6666622544544545455522667266766222222222222222222222222222222222222222222222222222222222222222
        695C407351238F72F50370EF406F5E4000000000000000000000000000000000000000000000000000000000000000
    SY-REPID
    I am picking the data from MAIN TABLE MDM_SUPPLIER_MAP and below is the code.
    CALL METHOD lv_mdm_api->mo_core_service->query
          EXPORTING
    *Main Table
          iv_object_type_code = 'MDM_SUPPLIER_MAP'               "#EC NOTEXT
    *      it_query = lt_query
          IMPORTING
          et_result_set = lt_result_set.
    Please suggest solution to get the records from MDM to ECC.
    When I am tring to replace the abpove with the below code it is working.But in this case I need to retreive all the data instead of using DO and ENDO.Could any please suggest solution.
    DO 10 TIMES.
    APPEND sy-index TO keys.
    ENDDO.
    CALL METHOD lv_mdm_api->mo_core_service->retrieve_simple
    EXPORTING
    iv_object_type_code = 'MDM_SUPPLIER_MAP'
    it_keys = keys
    IMPORTING
    et_ddic_structure = result_ddic

  • Apple Search API screenshotUrls problem

    Currently Apple provide search API for developers to grab app information, but there is a problem.
    The Search API gives screenshot urls sometimes in tiff format, for example, if you look at http://itunes.apple.com/lookup?id=427451581, it outputs a json object and gives the screenshotUrls property as:
    screenshotUrls: [
    "http://a3.mzstatic.com/us/r1000/105/Purple/f4/1e/10/mzl.iglsmwvl.png"
    "http://a1.mzstatic.com/us/r1000/091/Purple/36/c1/6c/mzl.jjjtwaoh.tiff"
    "http://a1.mzstatic.com/us/r1000/093/Purple/0e/f9/22/mzl.fzvvuldk.tiff"
    "http://a1.mzstatic.com/us/r1000/099/Purple/e2/90/12/mzl.qxijgrsp.tiff"
    "http://a1.mzstatic.com/us/r1000/086/Purple/ae/6d/85/mzl.egcruftz.tiff"
    "http://a1.mzstatic.com/us/r1000/075/Purple/2c/07/fa/mzl.yoylibvb.tiff"
    note it give 5 images with tiff format, but browsers cannt load tiff images, which brokes some functionality of application using the search API
    however, the itunes store itself uses a converted jpg format image, just look at the corresponding itunes appstore page and take a look at screenshots: http://itunes.apple.com/us/app/strahlenschutz-osterreich/id427451581?mt=8&uo=4
    the screen shots url are:
    http://a1.mzstatic.com/us/r1000/105/Purple/f4/1e/10/mzl.iglsmwvl.320x480-75.jpg
    http://a2.mzstatic.com/us/r1000/091/Purple/36/c1/6c/mzl.jjjtwaoh.320x480-75.jpg
    and so on, all with .jpg format
    so, is there a way to extract out the .jpg image urls, or is there any other API that provides desired screenshot and icon urls?
    Thanks

    I am surprised to say that I don't think this is possible.  Which is strange because upon inspection of the JSON results there is a return key for EVERYTHING except target iOS version.  I would imagine that this may be an oversight by apple.  It does not make sense that I can search "supportedDevices", "isGameCenterEnabled", and "fileSizeBytes" but not minimum or target OS.

  • SOAP API integration problem with OIM 11g R1

    Hi,
    We're facing a problem when we are attempting to provision for a third party Web Service application in OIM 11g R1.
    During development and test running in an IDE environment, JDeveloper, the soap wsdl requests are triggered and a response is received successfully. However, when we shift the work and integrate it with OIM using design console, there seems to be an error indicating an invalid wsdl location. We have used the super class Exception, in try-catch block for handling of the exceptions. Please see the log message.
    Xl Home Dir :/oracle/Middleware/Oracle_IDM1/server
    Running CREATEUSERTASK
    Target Class = org.identityconnectors.Provisioning.QuickShareUserProvisioning
    URL : XXXXX
    User ID : XXXX
    Password : XXXX
    ERROR: Invalid wsdl location robi/XXXX_saved_wsdl.wsdl
    When we simply run the jar file from the command line, it gives us, java.lang.NoClassDefFoundError: javax/xml/rpc/Service
    [oracle@idmlab JavaTasks]$ java -jar archive1.jar
    URL : XXXXX
    User ID : XXXX
    Password : XXXX
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.identityconnectors.Provisioning.QuickShareUserProvisioning.createUser(QuickShareUserProvisioning.java:41)
    at org.identityconnectors.Provisioning.QuickShareUserProvisioning.main(QuickShareUserProvisioning.java:215)
    Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.Service
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 14 more
    Any help or suggestion, appreciated!
    Thanks
    Tamim Khan

    Hi Kevin,
    Thanks a lot for the response. But, when i deployed the composite SAR in to the server from Jdeveloper, i checked the option to "Overwrite any existing composite with same revision ID". SO, i used the same revision ID (Say 1.0), will this also need to be disabled?
    Thanks,
    Srini

  • ABAP API' s Problems

    Hi All,
    I am trying to retrieve data from MDM using ABAP API's .
    I am stuck with couple of scenarios:
    1.How can we pass Boolean field to retrieve the data from MDM? 
    2. I  need pass a date value ....the last updated date should be greater than last job run date ...based on this query i need to retrieve data from MDM...
    please let me know your ideas  ....

    Hi,
    1.How can we pass Boolean field to retrieve the data from MDM?
    For retrieving Boolean field you can use Retrieving Simple Types
    CALL METHOD lr_api->mo_core_service->retrieve
    EXPORTING
    iv_object_type_code = 'Products'                        // Main Table
    it_result_set_definition = lt_result_set_definition
    it_keys = lt_keys
    IMPORTING
    et_result_set = lt_result_set.
    If you are using MDM 7.1 Please refer this for more details: You need Service Market Place ID for this.
    https://websmp210.sap-ag.de/~sapidb/011000358700001887232008E
    https://websmp210.sap-ag.de/~sapidb/011000358700001718602008E
    if you are using MDM 5.5 Please refer this for more details:
    https://websmp210.sap-ag.de/~sapidb/011000358700000271912007E Refer HOWTO_8
    2.  I need pass a date value ....the last updated date should be greater than last job run date ...based on this query i need to retrieve data from MDM...
    I am not quite sure how it can be done because here we don't have any Suppress unchanged records option as we have in syndicator which take care of syndicating only new and changed records to your target system everytime. Here we have just methods and classes which will retrieve all the records.
    You can invoke validation in MDM 7.1 using ABAP APIs but question is how will you make sure that this validation run on the basis of change pointers i mean for records which have already retrieved from MDM using MDM ABAP APIs. you can print record id for failed validations.
    Best Regards,
    Mandeep Saini

  • Javascript API $x_uptill problem

    Hi people,
    I have a little boring problem...
    Simply I made this function in order to hide & show a page element with it's label
    function ApplyVisible(obj, Visible){
    var lblobj = html_GetElement(obj);
    labels = document.getElementsByTagName("LABEL")
    for(var i = 0; i < labels.length; i++){
    if(labels.getAttribute("for") == lblobj.id){
    var lbl = labels[i];
    break;
    var td = $x_UpTill(obj, 'TD');
    if ($x_UpTill(obj, 'FIELDSET'))
    var fieldset = $x_UpTill(obj, 'FIELDSET');
    but the function $x_UpTill raise an exception when an upper node element with FIELDSET tag does not exists
    E is null
    http://myhost:myport/i/javascript/apex_3_1.js
    Line 1
    What I'm wrong?
    Thanks all
    Claudio

    Hello,
    >> I don't want to hide all table row
    APEX uses tables to layout items. Each item is comprised of two table cells – one for the item label, and one for the input part (element in APEX terms). So, if you want to hide a single item (label and element) on your page, which reside on a single form row, the JavaScript function I mentioned is the one to use. If you have more than one item on the form row, you’ll need different approach, depends on your exact layout. In this case, $x_UpTill() will probably not be relevant, because you’ll be looking for sibling nodes, and not parent ones.
    And to your original JavaScript code. It’s very hard to debug a code without see the actual page and item layouts, so I’ll speak in general.
    First, the ‘fieldset’ tag doesn’t wrap the label part of the item, only the element part, so cascading up to it, will not hide the label.
    Second, the ‘label’ tag is not used with all the items, even not with all the items that wrapped with ‘fieldset’. For example, a date picker item includes ‘fieldset’ but not ‘label’. In your code, you are retrieving all the ‘label’ tags, but for many items on your page, it might return null.
    If you want something more specific, you should post an example on apex.oracle.com.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • UCS XML API Query Problem

    Currently I am attempting to power up and down a blade that is un-attached to a profile using a UCS XML API Query.
    Current progress:
    I have come up with this query that will power down a blade from a call from an attached profile...
    <configConfMo cookie="<SomeCookie>" inHierarchical="false">
    <inConfig>
    <lsPower dn="org-root/ls-profile1/power" state="down" status="modified"/>
    </inConfig>
    </configConfMo>
    This works for a server that is attached to a profile <profile1>, but I want to power down a server that is un-attached. I am currently using  UCS emulator 2.2 for testing these querys.

    There are a few options here that occur to me:
    Go to either the web interface of one of your UCSMs or the emulator with something like:
       http:///visore.html  or https:///visore.html
    traverse the objects or search for what you want and follow the '?' link to the right of the Class name.
    You could also try to find what you need here: http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/VScgIX.html

  • Oracle BIP API/WebService problem

    Hi all,
    I have some doubts regarding the usage of new Oracle BIP 11g .
    1.In BIP Admin Dev Guide 11.1.1.pdf ,the usage of BIP is only given using API's,so does that mean that the WebServices of BIP like
    PublicReportService is of no use.Please give me the solution :
    Can I use the webService for Delivery of multiple document using webservice,if YES,then HOW?
    2.For delivery of multiple documents ,while attaching Documents with the mail,can i do it using webService?
    Thanks In Advance,
    Mandeep

    But my question is ,while delivering the multiple Document is a same mail,how can i do multiple attachements using web services?

  • Java Collaboration Suite API - Common Problems......and Solutions!

    , Hi all,
    I'd just like to share some of the issues I've come across in my first try at using the Java Collaboration Suite API (including the Accelerator Kit).
    In short,
    The Good: I've succeeded in getting a working application, and the code doesn't look half bad.
    The Bad: Man was it a pain to get to this point.
    Here are a few notes about what I've found, what can be improved by oracle, and hopefully it will help others.
    1. The initial setup went smoothly. I included the Jar's from the web kit, and was able to successfully connect using OCDConnectionFactory.CreateConnection. This first attempt didn't use the Accelerator Kit, as at the time I didn't even know it existed. As soon as I started to try any examples from Oracle, code snippets wouldn't even compile (usually due to FDKUtils and FDKSession) and I couldn't find out why. After exhaustive research, I found that the Accelerator Kit here (http://www.oracle.com/technology/products/cs/developer/contentservicesdev/contenservicesdevkit.html), but it is not a library in the lib. After even further research, I found a very interesting thing. If you click on the link I've shown, you will see 2 versions of the Accelerator Kit: The recent link just includes the kit as a bunch of classes. I found it kind of ugly to include those in my project. However, if you click on the older link you will find a jar called "content-ws-helper.jar". This is actually the Accelerator Kit in a JAR (yet without any documentation anywhere on this).
    2. When using the accelerator toolkit, the connection string you use to connect changes. It no longer should have "ws" at the end. Don't believe this is documented anywhere! So if your connection string is http://server:8888/content/ws it should be changed to http://server:8888/content/
    <strong>
    </strong>3. Most of the examples given are appreciated, but they are also impossible to read. Methods should not be hundreds of lines of code long! Here is a handy method that I seem to be using quite often (at least in my use cases).
    private Item getFolder(String path) throws OCSServiceException {
    try {
    FileManager fm = Managers.getFileManager(fdkSession);
    Item workspace = fm.resolvePath(path, null);
    CommonManager commonM = Managers.getCommonManager(fdkSession);
    workspace = commonM.getItem(workspace.getId(), attributeRequest);
    return workspace;
    } catch (Exception e) {
    LOGGER.error(e.getMessage(), e);
    throw new OCSServiceException("Exception getting folder");
    The key is the attributeRequest class variable. This is the object that changes depending on what properties I want to retreive regarding that folder. A commonly used one for getting categories is:
    attributeRequest = FdkUtils.newAttributeRequestArray(Attributes.CATEGORY_CONFIGURATION,
    FdkUtils.newAttributeRequestArray(Attributes.ATTRIBUTE_OVERRIDES,
    new AttributeRequest[]{
    FdkUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_ATTRIBUTE),
    FdkUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_DEFAULT),
    FdkUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_CATEGORY_CLASS)
    By seperating this out, It gets rid of a ton of the speghetti like code that you see in most of the examples and on the forums.
    For example, this thread helped me in category updates for folders http://kr.forums.oracle.com/forums/thread.jspa?threadID=495959
    , but as the post at the bottom states, this should not be the difficult. My method, which performs a similar method, is as follows:
    public void updateFolderCategory(String path, String categoryName, String categoryAttributeName, Object value ) throws OCSServiceException {
    try {
    CategoryService cs = new CategoryServiceImpl();
    long categoryId = cs.getCustomCategory(categoryName).getId();
    long attributeId = cs.getCustomAttribute(categoryName, categoryAttributeName).getId();
    NamedValue[] attOverride = new NamedValue[]{
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_ATTRIBUTE, new Long(attributeId)),
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_CATEGORY_CLASS, new Long(categoryId)),
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_DEFAULT, value),
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_REQUIRED, DEFAULT_REQUIRED),
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_SETTABLE, DEFAULT_SETTABLE),
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE_PROMPT, DEFAULT_PROMPT),
    NamedValue[] categoryConfigurationAttributes = new NamedValue[]{
    new NamedValue(Attributes.ATTRIBUTE_OVERRIDE, attOverride)
    connect();
    Item folder = getFolder(path);
    Managers.getCategoryManager(fdkSession).setCategoryConfiguration(folder.getId(), categoryConfigurationAttributes);
    LOGGER.info("Updated folder category definition");
    } catch (Exception e) {
    LOGGER.error(e.getMessage(), e);
    throw new OCSServiceException("Exception updating category");
    } finally {
    disconnect();
    I hope this information helps someone, and I'd appreciate if anyone can also add input or critique my approach. I also hope that there is someone else out there who is still using the API and hasn't given up yet!

    I was also looking for something like this..I did not get any response.
    Did you tried to add bpel:exec ? you can call OCS api in the java blockc within BPEL. I am using this and creating folder from BPEL.

  • MDME Java API - Page Problem

    Hi,
    I am using MDME Java API. I want to know how the multiple records running into several pages is handled. I know that there is a method SetSize() in ResultSetDefinition class and I also know that the method GetResultSet() uses the page(probably page number) as an argument. But, I am not sure how to use this feature for practical purposes.
    Can anybody help me??
    Thanks in Advance,
    Rajani

    Hi Rajani,
      The paging feature comes in handy if you have a very large dataset you need to iterate through. Using the page number and SetSize() method allows you to efficiently loop through the resultset. Here's some sample code:
    // loop through the resultset, retrieving a page a time until all records have been processed
              while (isDone == false) {
                   A2iResultSet rs = catalog.GetResultSet(search, rsd, sortField, sortAscending, page);
                   // process the records
                   processProdRecords(rs);
                   // increment counter
                   page++;
                   // are there more records?
                   if ((page * pageSize) >= search.GetNumSearchTableResults())
                        isDone = true;
    Regards,
    Oliver

  • API access problem...

    Hi all,
    I'm new to bing ads (and PHP, more of a Perl person), so please take it easy :). I'm trying to get basic authentication going with the API so I can just access reports for example.
    I've downloaded http://msdn.microsoft.com/en-us/library/bing-ads-reporting-request-and-download-a-keyword-performance-report-in-php.aspx as an example test.
    I read something about Oauth, should I be doing something else (other than setting user/pass/token) for the future, this is just for server console access to download reports (not a web application)?
    Probably more importantly, I also get an error
    "SSL connection reset by peer"
    "Failed to enable crypto" line 342 when it tries to download a file. Anything I should be checking SSL wise ?
    (checking, php was compiled with '--with-openssl' )
    Thanks for any help!

    Hi team,
    Thank you for your questions. First, I want to make sure you authenticating the API correctly. After that, we can then move on to the next step of the SSL issue you are getting.
    They are two ways that you can specify the header now in Bing Ads API:
    1) Using old Bing Ads user name (NOT MSA account).
    Only Old API
    users will have this.
    <DeveloperTokeni:nil="false"></DeveloperToken>
    <Password
    i:nil="false"></Password>
    <UserName
    i:nil="false"></UserName>
    +other required header elements for the request
    2)
    Using MSA account, (if your username is the form of an email address). Since you are new, you are most likely in this category
    AuthenticationToken
    i:nil="false"></AuthenticationToken>
    <DeveloperToken
    i:nil="false"></DeveloperToken>
    +other required header elements for the request
    All this information is described in this article here;
    http://msdn.microsoft.com/en-US/library/dn277356.aspx
    Let us know if you can authenticate. If not, please respond with SOAP request and response.
    Thanks,
    Itai

  • Problem with JNI

    i have to implement a few standard APIs. As a part of the implementation I have to provide references to an object I create. Now my underlying code is C++ with JNI used to throw the Java APIs. Problem is JNI now returns different references for the same object and hence my prupose id defeated. Could anyone suggest how this problem can be overcome.

    I tried to figure out what your problem is, but can't. Please rephrase it and give a bit more detail on what you are doing and what is going wrong.

  • Problem with jni references

    i have to implement a few standard APIs. As a part of the implementation I have to provide references to an object I create. Now my underlying code is C++ with JNI used to throw the Java APIs. Problem is JNI now returns different references for the same object and hence my prupose id defeated. Could anyone suggest how this problem can be overcome.

    I'm not exactly sure what you're talking about, but it sounds like you may need to look into global references. Look at NewGlobalRef() and DeleteGlobalRef() and see if those help you out.
    God bless,
    -Toby Reyelts
    For all your JNI woes, check out Jace - http://jace.reyelts.com/jace

Maybe you are looking for