Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Creating FDK client invoking webservices

New Here ,
Jul 23, 2008 Jul 23, 2008

Copy link to clipboard

Copied

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.

Views

929
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2008 Jul 23, 2008

Copy link to clipboard

Copied

The only way I've done this is to create the code to make the web service call in an MFC DLL with an exported function that is separate from the FDK DLL, then call the exported function from the FDK DLL.

...scott

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2008 Jul 23, 2008

Copy link to clipboard

Copied

HI scott,

Thanks for your reply, I need to invoke Java web services.I've explained below the architecture of the Application.

Application would be to implement a three tier architecture - Framemaker/Framemaker extensions on the client, web services/java classes for middle tier and oracle/oracle XML DB for the back end.

Can anyone share some information about invoking JAVA web services from FDK client.

...Karthik

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2008 Jul 24, 2008

Copy link to clipboard

Copied

Hi Karthik...

If I'm understanding correctly, it doesn't really doesn't matter how the web service is implemented. If you're just trying to make a call to that web service from the FDK, you just need to make an HTTP request and pass the appropriate data, no?

I've used the MFC CInternetSession class to provide a function in an external DLL (separate from the FDK DLL) that makes the HTTP request, and returns data to the FDK.

...scott

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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...

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 30, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 30, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2008 Aug 03, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2008 Aug 04, 2008

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines