× 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.



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.

This thread ...

Follow-Ups:
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.