|
but the web developers don't want to callthe web service multipletimes, so I'm stuck with finding a solution.
Hi,We
I have some questions about web services and how we are designing them.
are using web services to provide data from our system i to our .NET web
application. These web services are not intended to be used outside ofour
own application. One of our reasons for using web services was to avoiddata
storing a user id and password on the .NET side.
Our current approach has been to create the RPG program to return the
and then use the functionality in WDSC to create the web service frontend
for the RPG program. Overall, this approach works pretty well for most
situations. The only thing we don't like about this approach is when we
are returning multiple records from the RPG. We set the size of theoutput
multiple occurrence data structure to be large enough to handle what wea
think is the highest number we will run into. In one case it needs to
handle close to 10,000 records. Personally, I think that is to large of
number to return at one time, but the web developers don't want to callthe
the web service multiple times, so I'm stuck with finding a solution.
The generated Java code from WDSC will return an XML document matching
number of occurrences output from the RPG. We would like it to onlyreturn
the number of occurrences that actually contain data.would
Since I don't know Java, my initial thought solve this problem was to
create an RPG program to replace the Java in this situation. The RPG
receive the input XML document, parse it and then call the RPG datacontrol
retrieval program. Next it would build the XML response document and
return that result. I thought I could do this using CGIDEV2 and Scott
Klement's port of the Expat parser (thanks Scott). This way, I can
the XML document that is output. Does this seem like a reasonableRight
solution?
I was able to test out the XML parsing and that seems to work okay.
now, I'm trying to use CGIDEV2 to read the input XML and I'm not surehow
to do that. All the examples I see involve reading input from a webpage.
Does anyone know what field would contain the XML after using theweb
zhbgetinput procedure?
One concern I have about the CGIDEV2 approach is how will I secure the
service? Only our application should be authorized to call it.individual or entity named. If you are not the intended recipient, do not
We are on V5R3 and won't be going to V5R4 until sometime next year and
this needs to be solved before then.
Dean Eshleman,
MMA, Inc.
______________________________________________________________________
Confidentiality Notice: This information is intended only for the
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.