Skip to main content
Participating Frequently
July 23, 2008
Question

Creating FDK client invoking webservices

  • July 23, 2008
  • 13 replies
  • 1057 views
Hi all,

I want to create a FDK client that invokes webservice. Any one have experienced in invoking web service from FDK client. Please share your experience.

Thanks in advance.
    This topic has been closed for replies.

    13 replies

    Participating Frequently
    August 4, 2008
    Hi Karthik...

    The only way I've done this is to "export" the function from the external DLL (list the exported function name in the EXPORTS section of the DEF file), then use the LoadLibrary function in the FDK code to call that exported function. You don't include the H file and can't instantiate classes using this method. You can just call the function and pass the parameters.

    There may be other ways to do this, but I'm not aware of them.

    ...scott
    Participating Frequently
    August 4, 2008
    Hi,

    I've created DLL and including header file from the external DLL.

    #include "JniDllClass.h"

    then I've created a pointer variable

    JniDllClass *jc;

    then I invoke the method,inside the FDK client.

    jc->General();

    It builds sucessfully, after installing this FDK DLL . when i restarting the Framemaker it gives the following message.
    "Cannot initiate API client .dll

    Check for errors in the APIClient section of C:\Programfile\framemaker\maker.ini, Verify that the client program exist, and make sure you have enough swap space to run the client."

    I've increased the virtual memory size, still it throws this error.
    share your ideas,

    ...Karthik
    Participating Frequently
    July 30, 2008
    I've only done this with an FDK DLL that calls the exported function from an MFC DLL .. but I'd imagine that you could export the functions from a Win32 DLL as well. You can load the exported function from an executable or DLL FDK plugin.

    ...scott
    Participating Frequently
    July 30, 2008
    Hi scott,
    I've created MFC DLL,which one client type (FDK DLL or executable plugin )is suitable for exporting DLL functions.

    I've one doubt,Why I've to create external DLL as MFC. why not to create as win32 DLL.I've created DLL also as win32.

    Thanks,

    ...Karthik
    Participating Frequently
    July 29, 2008
    Hi Karthik...

    1) You create the external DLL as a separate MFC project, but you export the functions that you want to call from the FDK client.

    2) MFC

    3) See http://www.adobeforums.com/webx/.59b5a77c/0

    Cheers,

    ...scott
    Participating Frequently
    July 29, 2008
    hi scott,

    now i'm also thinking about creating external DLL. I've some doubts about creating external DLL.

    1,If i need external DLL I've to create it with the same FDK client project.is it correct or not.
    2,Will it be MFC or Win32?
    3,Can you share me the process of creating external Dll for FDK client.

    Thanks,

    ...karthik
    Participating Frequently
    July 29, 2008
    Sorry .. the only solution that I know of is to build an external DLL with the JNI code that you call from the FDK client. I'm sure there's a way to do what you want, but I don't know how to do it. My only solution is as described earlier.

    ...scott
    Participating Frequently
    July 29, 2008
    Hi scott,

    Thanks for your immediate reply. I've created FDK client with JNI calls to Java class. It builds without any problem. I've created this as DLL. After installing this DLL when i restart the FrameMaker it throws the following message and it didn't populate the client.

    "Cannot initiate API client .dll

    Check for errors in the APIClient section of C:\Programfile\framemaker\maker.ini, Verify that the client program exist, and make sure you have enough swap space to run the client."

    I've increased the virtual memory size, still it throws this error.

    Share your ideas,

    Karthik...
    Participating Frequently
    July 28, 2008
    Hi Karthik...

    I've not been able to do so (although that doesn't mean it's not possible). You can make system calls to Java via the command line from the FDK using the CreateProcess function (and probably others), but this is not very robust.

    ...scott
    Participating Frequently
    July 28, 2008
    Hi scott,
    Thanks for you reply, Is it possible to use JNI to invoke java classes from FDk client directly. Now I'm trying to invoke Java classes from FDK client using JNI.

    Share you ideas,

    Thanks,
    ...Karthik