Blog
iDevelop

« The Beginning of The End? | Main | The Rodney Dangerfield of Computer Systems »

June 07, 2011

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83545a5d153ef015432d7e6b8970c

Listed below are links to weblogs that reference Musing on Comments, Updates and Travel:

Comments

IBM has a Web page that is intended as the main place where enhancements will be communicated:
https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/IBM%20i%20Technology%20Updates

Have a nice day.
Thierry.

Even the new wsdl2rpg.sh for the IWS client is still annoying. The C compiler is only part of the problem -- the otehr problem is that the source is all placed in the IFS. That includes CL code (which can't be compiled from the IFS, so you need to use CPYFRMSTMF to put it into a srcpf)

But it's much improved over the old one that generated pure C code and expected you to call it :)

@Scott "But it's much improved over the old one that generated pure C code and expected you to call it :)"

Ignoring the C compiler issues, I'm still trying to determine how much (if anything) it saves me compared with using HTTPAI. Fatherhood issues aside, how would you compare them Scott? Do you think the learning curve for this (unfortunately also named as WSDL2RPG) is shorter? If not it is hard to see the benefit.

At one time, a partner & I (the Handerson Company), made a temporary career of converting S/36 COBOL to AS/400. It was then that I learned that to be efficient, you write programs to fix source code. We also installed a few AS/400s that replaced monster S/36’s w/ huge diskettes. I wonder how many places out there are still running S36/EE code?

Comparing HTTPAPI and IWS Client (wsdl2rpg.sh) is like comparing apples to apple pie.

Sure, there's some stuff in common (namely, the apples) but there's a lot of differences. Apples can be used to make other things besides apple pie! And if you're looking for apple pie, it's a lot easier to buy the pie than it is to make it from apples.

HTTPAPI implements the HTTP protocol. HTTP can do many things. It's true that SOAP web services use HTTP (much as apple pies use apples) but there's more to them than that -- there's SOAP messages and WSDL files and the process of converting parameters into those two XML formats. HTTPAPI makes no attempt to do that part for you, and expects you to do it yourself. Whereas IWS client does all of that for you.... so, if you set the C compiler and IFS issues aside, of *course* it's easier to use.

But now suppose you don't want to call a SOAP web service. Maybe you want to call a REST or POX web service. Impossible to use IWS client for that. Likewise, suppose you want to use HTTP for something else? An ordinary file download, for instance... or maybe you want to fill in and submit a form on a web page (taking the place of a browser)? Possible with HTTPAPI, impossible with IWS client.

So the question is really "how difficult is it to construct an XML message in your program?" and also "how difficult is it to parse the returned XML message?" because IWS does that for you.... HTTPAPI does not. If you find those things to be relatively easy, then you'll prefer HTTPAPI because of the added flexibility. If you find those things to be very difficult, and you only need to call a SOAP web service anyways, you'll probably be happier with IWS.

So the extra hassle of converting IFS files to source members, and/or storing your source code in the IFS, and/or needing a C compiler... these things might be important, because they may add enough complexity that HTTPAPI is easier, even for SOAP messages.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.