Aaron,
Beauty mate.
Peter
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of albartell
Sent: Friday, 14 September 2007 12:36 p.m.
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: QtmhRdStin at V5R4
Apply PTF SI27738.
Note - I bit of googling throws up comments about TEXT/XML being
deprecated
and some conjecture as to whether this is a Microsoft or Apache issue.
It'll never happen :-)
HTH,
Aaron Bartell
Lead developer of RPG-XML Suite (www.rpg-xml.com)
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Peter Connell
Sent: Thursday, September 13, 2007 5:52 PM
To: RPG400-L@xxxxxxxxxxxx
Subject: QtmhRdStin at V5R4
Hi,
Having just upgraded from V5R2 to V5R4 we had a problem with the certain
CGI apps where calls from RPG to the QtmhRdStin API now return blanks.
However, it worked OK in other CGI apps which also use QtmhRdStin.
My investigation shows that it appears that the problem relates to the
HTTP request header being received by the Apache HTTP server, namely
when it contains the header entry CONTENT-TYPE: TEXT/XML; CHARSET=UTF-8
While this has always worked OK at V5R2, it would appear that Apache at
V5R4 does not handle this header as expected.
When the HTTP client is a browser, the problem arises when the browser
sends a request using the Microsoft.XMLHTTP control, but only when the
xml payload has a data type that is a document. NOTE - a payload which
is formatted as a string works fine.
So it appears that sending an xml document created via the
Microsoft.XMLDOM control will generate an http header with a content
type of text/xml which Apache does not like.
However, having confirmed that the problem still occurs when reading
STDIN directly from RPG via the read API, provided via QC2LE, then it
may be reasonable to suspect that any CGI application will suffer from
this affliction when passed a header with a content type of text/xml.
I can work around the problem for browser based requests by ensuring
that the payload is a string instead of a DOM document, but it would be
preferable if there was a way to alter the Apache HTTP configuration to
accomodate this. I have tried various Addtype directives and attempted
a rewrite rule by to no avail.
Has anyone else had a solve this?
Note - I bit of googling throws up comments about TEXT/XML being
deprecated and some conjecture as to whether this is a Microsoft or
Apache issue.
Cheers, Peter
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda Advantage. If you need assistance, please contact Veda Advantage on either :- Australia 133124 or New Zealand +64 9 367 6200
As an Amazon Associate we earn from qualifying purchases.