|
I'm a little curious, what system in interacting with the users? The .NET
system?
If so, then just define a fixed record interface between the 400 and the
.NET application, and forget using
XML on the 400. Depsite the vast speed increases that 400's have realized,
you still have a whole lot more
cycles to play with on the .NET side. :)
So let's say you have a .NET webservice defined; the input / output parms
will appear to the web service has arguments.
From there you can simply pack them into any record format your want, opena socket, and transmit it to the 400. Once the 400
processes it, however you want it to do so, the return from the 400 would
go over the same socket.
The .NET application would then unpack the parms returned from the, set his
local parm variables, and return to the caller.
I use this exact technique to manage some PDFs with thousands of fields in
them. Works great.
(The backend is Linux in my case, but the same idea, and a very trivial
exercise to write. Also cheap. :)
-Paul
On Dec 1, 2009, at 11:59 AM, Mike wrote:
I am at a loss here of a best-practice to pass XML back and forth withRPG
and C#.NET. Originally, I was going to use a temp physical file in QTEMP,one
but it seems to be that there should be a better way. The temp file has
line of the document in one record of the file. To me this seems to add athan
lot of extra work that really shouldn't be needed. I am looking for a
two-way communication.
One thought is to pass a 32000 char parameter back and forth, but is that
really a good idea? What happens if the document happens to be bigger
that? I don't think I would hit that limit so maybe I would be fine?the
What about creating a temp IFS file? That seems like more work than is
needed as well.
What are your thoughts?
Obviously, both the RPG and C# programs will be reading and processing
XML document.David
I have x-post this on systemidotnet as well to get both sides. I hope
doesn't mind.list
--
Mike Wills
http://mikewills.info
P: (507) 933-0880 | Skype: koldark
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.