Thank you Daune!
Part way there...
What happened when the program blew up? Did the error bubble up and
generate some response to the web service requestor? Did the program
hang up in an obscure job and subsystem waiting for a response?
I ask because I was wondering how to handle exceptions in RPG programs /
service programs exposed as web services. Some of our programs assume
the best case and leave it to the operator to sort out errors -- or to
automatic responses and MONMSG is the calling CL.
Again, thanks
Bill Blalock
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Christen, Duane J.
Sent: Friday, May 30, 2008 11:29 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Web Services -- need suggestions on how to handle
datastructuresfor programs to be used as Web Services
Bill,
I don't know if you have gotten an answer on this or not but here goes.
It's not that clever, it does expose the structure(s) as you would
expect but it does not put limits on the length of the character/string
fields. I discovered this the hard way.
The tester didn't know any better (sometimes a good thing) so they were
putting values larger than were defined and the service was not working
correctly.
To fix it you have to edit the WSDL and change the properties
appropriately for each sub-field in the template structures. (The
properties of the actual structures where inherited from the template
structures)
This is the PCML for my NoteServices web service:
http://code.midrange.com/e53516a5ab.html
The web service wizard built the following WSDL:
http://code.midrange.com/be8f37197a.html
Duane Christen
NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named. Any use,
copying, or disclosure by any other person is strictly prohibited. If
you have received this transmission in error, please notify the sender
via e-mail.
As an Amazon Associate we earn from qualifying purchases.