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



The syntax you use is okay, accordingly to Bob, if you describe GetHtml
command correctly; and it looks like you did.
Regarding the starting position: only Sections Names should start in
position 1, not all lines. It looks like you are okay here, too...

I noticed something else:

You have to start your XML document like that (as far as I know and I
used):

<AS400>TOP
Content-type: text/html (followed by a blank line!!!)

<?xml version="1.0" encoding="UTF-8"?>
(and the rest of the document)

I am pretty sure that blank line after Content-type line is, also,
mandatory; try it, it might be the solution.



Thank you


Florin Todor



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Versfelt, Charles
Sent: Wednesday, June 02, 2010 4:22 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: CGIDEV2 XML Section Not Found

Hi,

Thanks for all the replies.

All of my <AS400> lines start with the first character, no spaces
before.
Exactly like this:

<AS400>TOP
<AS400>AUTH
<AS400>MARK
<AS400>AUTHMARK
<AS400>ENDDAY
<AS400>BOTTOM

Subsequent lines (the XML content) are indented.
I tried moving the first and last lines of the XML content also to
character 1. No impact.
I don't think all the XML has to start in character 1?

Here are all my beginning and ending tags. (I left out some of the XML
fields for space sake)

<AS400>TOP
<?xml version="1.0" encoding="UTF-8"?>
<transRequest RequestCount=/%OCOUNT%/>
<AS400>AUTH
<newOrder BatchRequestNo=/%OCBCH#%/>
<industryType>/%OCINDS%/</industryType>
<comments>/%OCCOMM%/</comments>
</newOrder>
<AS400>MARK
<markForCapture BatchRequestNo=/%OCBCH#%/>
<txRefNum>/%OCTREF%/</txRefNum>
<terminalID>/%OCTRID%/</terminalID>
</markForCapture>
<AS400>AUTHMARK
<newOrder BatchRequestNo=/%OCBCH#%/>
<industryType>/%OCINDS%/</industryType>
<transType>/%OCTRTP%/</transType>
</newOrder>
<AS400>REFUND
<newOrder BatchRequestNo=/%OCBCH#%/>
<industryType>/%OCINDS%/</industryType>
</newOrder>
<AS400>ENDDAY
<endOfDay BatchRequestNo=/%OCBCH#%/>
<bin>/%OCCBIN%/</bin>
<merchantID>/%OCMRID%/</merchantID>
<terminalID>/%OCTRID%/</terminalID>
</endOfDay>
<AS400>BOTTOM
</transRequest>

To those who suggested different syntax: That's not how it was done in
the CGIDEV2 sample programs,
I'm not sure why the syntax would have to be different.

Charlie

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.