× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you are experienced in Java programming don't even consider using RPG to parse or compose your xml (although it is very easy to compose with CGIDEV2). There are a plethora of tools out there that in Java for doing XML, Web Services, etc. Parse all of your xml with Java and make calls to your RPG programs using either PCML (very limiting) or SQL stored procedures.

For a recent project I used Apache Axis to send a SOAP web service request to a .NET web service and it took me only a couple hours to download the tool from jakarta.apache.org and generate my Java classes based on the WSDL the .NET programmer provided to me. This same task in RPG would have taken much longer being that there are no SOAP processors available in the RPG realm (at least until Scott Klement writes an interface to one :-)

With that said here is my site where I wrote an interface to IBM"s XML parser. http://mowyourlawn.com/ Scott Klement has also put together an interface to the expat parser which can be found on his site: http://scottklement.com

Just note that if you go the route of RPG to do your XML processing you will always be about 2 to 3 years behind in technology until someone ports the technology to RPG.

Those are my thoughts on the matter :-)
Aaron Bartell

Mallasee, Curt wrote:

I currently know how to use java in RPG, however I have never had the 
opportunity to use XML in RPG yet.  I have a case where I am wanting RPG to use 
both Java and XML, possibly having RPG create XML documents to pass to Java, 
and receiving other XML documents from java to have RPG parse.

Does anyone have any good links to documentation on where to begin to learn 
this? I learn best by simple, straight-to-the-point examples.  I also know IBM 
has a XML service program available for RPG, but I don't have a clue how to use 
it. I haven't found any material out there that makes sense to a beginner in 
this area (but I don't want it to be over simplified where it can't be applied 
in a real world business environment). I know the basic concept of XML, I just 
don't know how to program with it, especially in RPG. I am experienced in java 
programming.

Thanks for any direction anyone with exposure to this can provide.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.