PDA

View Full Version : Calling a VDF WebService from a DF32 CM program



Archie Campbell
13-Feb-2006, 01:40 PM
I have a WebService that accepts a string of DocumentIDs and return the
filename or URL of a PDF document.

I would like my DF32 console mode application to
1. call this WebService, get the filename and
2. pass the filename onto Adobe for display.

I am trying to think of the best way of calling the WebService

Just over a year ago I had a siimilar posting with the following
suggestions:
1 get a DLL programs and call it with external_function
2. write a VDF program that does everything and call it from the I20
program

#1 is a no go - its been way too long since I wrote anything in C
#2 is possible, but I would like my app to run on Linux so .....

Does anyone have any further thoughts?

Thanks
Archie

Mark Rutherford
13-Feb-2006, 03:33 PM
You want both a CM Linux and a CM Windows app to utilize a Webservice?

Windows, write a vdf app (you knew that already :D)

Linux, Well... Perl is your friend here.
Write a Perl program, give it the arguments and let it return to you,
the location of the PDF, or simply itself fire off the Linux Acrobat reader.

I know it's a hack, but it's all I can think up at the moment.

Archie Campbell wrote:
> I have a WebService that accepts a string of DocumentIDs and return the
> filename or URL of a PDF document.
>
> I would like my DF32 console mode application to
> 1. call this WebService, get the filename and
> 2. pass the filename onto Adobe for display.
>
> I am trying to think of the best way of calling the WebService
>
> Just over a year ago I had a siimilar posting with the following
> suggestions:
> 1 get a DLL programs and call it with external_function
> 2. write a VDF program that does everything and call it from the I20
> program
>
> #1 is a no go - its been way too long since I wrote anything in C
> #2 is possible, but I would like my app to run on Linux so .....
>
> Does anyone have any further thoughts?
>
> Thanks
> Archie
>
>


--
Thanks!

Mark Rutherford
Maunz Electronics, Inc.
803-791-5860

Archie Campbell
13-Feb-2006, 04:13 PM
Yes, I guess it makes sense to have two applications.

BTW how do I get an external nonDataFlex app like Perl to return a value to
a CM program.

Thanks Mark

Archie

"Mark Rutherford" <mark@maunzelectronics.com> wrote in message
news:FYnZSzNMGHA.2932@dacmail.dataaccess.com...
> You want both a CM Linux and a CM Windows app to utilize a Webservice?
>
> Windows, write a vdf app (you knew that already :D)
>
> Linux, Well... Perl is your friend here.
> Write a Perl program, give it the arguments and let it return to you,
> the location of the PDF, or simply itself fire off the Linux Acrobat
reader.
>
> I know it's a hack, but it's all I can think up at the moment.
>
> Archie Campbell wrote:
> > I have a WebService that accepts a string of DocumentIDs and return the
> > filename or URL of a PDF document.
> >
> > I would like my DF32 console mode application to
> > 1. call this WebService, get the filename and
> > 2. pass the filename onto Adobe for display.
> >
> > I am trying to think of the best way of calling the WebService
> >
> > Just over a year ago I had a siimilar posting with the following
> > suggestions:
> > 1 get a DLL programs and call it with external_function
> > 2. write a VDF program that does everything and call it from the I20
> > program
> >
> > #1 is a no go - its been way too long since I wrote anything in C
> > #2 is possible, but I would like my app to run on Linux so .....
> >
> > Does anyone have any further thoughts?
> >
> > Thanks
> > Archie
> >
> >
>
>
> --
> Thanks!
>
> Mark Rutherford
> Maunz Electronics, Inc.
> 803-791-5860

Mark Rutherford
13-Feb-2006, 05:09 PM
I have done similar hacks by simply passing a filename that is a random
number to the Perl program, and since we know the filename in Dataflex..
Just open the file and extract the info.

Yes, it is crude but I have no idea how else to do it.


Archie Campbell wrote:
> Yes, I guess it makes sense to have two applications.
>
> BTW how do I get an external nonDataFlex app like Perl to return a value to
> a CM program.
>
> Thanks Mark
>
> Archie
>
> "Mark Rutherford" <mark@maunzelectronics.com> wrote in message
> news:FYnZSzNMGHA.2932@dacmail.dataaccess.com...
>> You want both a CM Linux and a CM Windows app to utilize a Webservice?
>>
>> Windows, write a vdf app (you knew that already :D)
>>
>> Linux, Well... Perl is your friend here.
>> Write a Perl program, give it the arguments and let it return to you,
>> the location of the PDF, or simply itself fire off the Linux Acrobat
> reader.
>> I know it's a hack, but it's all I can think up at the moment.
>>
>> Archie Campbell wrote:
>>> I have a WebService that accepts a string of DocumentIDs and return the
>>> filename or URL of a PDF document.
>>>
>>> I would like my DF32 console mode application to
>>> 1. call this WebService, get the filename and
>>> 2. pass the filename onto Adobe for display.
>>>
>>> I am trying to think of the best way of calling the WebService
>>>
>>> Just over a year ago I had a siimilar posting with the following
>>> suggestions:
>>> 1 get a DLL programs and call it with external_function
>>> 2. write a VDF program that does everything and call it from the I20
>>> program
>>>
>>> #1 is a no go - its been way too long since I wrote anything in C
>>> #2 is possible, but I would like my app to run on Linux so .....
>>>
>>> Does anyone have any further thoughts?
>>>
>>> Thanks
>>> Archie
>>>
>>>
>>
>> --
>> Thanks!
>>
>> Mark Rutherford
>> Maunz Electronics, Inc.
>> 803-791-5860
>
>


--
Thanks!

Mark Rutherford
Maunz Electronics, Inc.
803-791-5860

Archie Campbell
13-Feb-2006, 09:55 PM
Crude is often much better than nothing.
Thanks Mark
Archie

"Mark Rutherford" <mark@maunzelectronics.com> wrote in message
news:Hs#7boOMGHA.4760@dacmail.dataaccess.com...
> I have done similar hacks by simply passing a filename that is a random
> number to the Perl program, and since we know the filename in Dataflex..
> Just open the file and extract the info.
>
> Yes, it is crude but I have no idea how else to do it.
>
>
> Archie Campbell wrote:
> > Yes, I guess it makes sense to have two applications.
> >
> > BTW how do I get an external nonDataFlex app like Perl to return a
value to
> > a CM program.
> >
> > Thanks Mark
> >
> > Archie
> >
> > "Mark Rutherford" <mark@maunzelectronics.com> wrote in message
> > news:FYnZSzNMGHA.2932@dacmail.dataaccess.com...
> >> You want both a CM Linux and a CM Windows app to utilize a Webservice?
> >>
> >> Windows, write a vdf app (you knew that already :D)
> >>
> >> Linux, Well... Perl is your friend here.
> >> Write a Perl program, give it the arguments and let it return to you,
> >> the location of the PDF, or simply itself fire off the Linux Acrobat
> > reader.
> >> I know it's a hack, but it's all I can think up at the moment.
> >>
> >> Archie Campbell wrote:
> >>> I have a WebService that accepts a string of DocumentIDs and return
the
> >>> filename or URL of a PDF document.
> >>>
> >>> I would like my DF32 console mode application to
> >>> 1. call this WebService, get the filename and
> >>> 2. pass the filename onto Adobe for display.
> >>>
> >>> I am trying to think of the best way of calling the WebService
> >>>
> >>> Just over a year ago I had a siimilar posting with the following
> >>> suggestions:
> >>> 1 get a DLL programs and call it with external_function
> >>> 2. write a VDF program that does everything and call it from the
I20
> >>> program
> >>>
> >>> #1 is a no go - its been way too long since I wrote anything in C
> >>> #2 is possible, but I would like my app to run on Linux so .....
> >>>
> >>> Does anyone have any further thoughts?
> >>>
> >>> Thanks
> >>> Archie
> >>>
> >>>
> >>
> >> --
> >> Thanks!
> >>
> >> Mark Rutherford
> >> Maunz Electronics, Inc.
> >> 803-791-5860
> >
> >
>
>
> --
> Thanks!
>
> Mark Rutherford
> Maunz Electronics, Inc.
> 803-791-5860