Hi Scott,
We're working with an outside group, Valtech, who is creating our new
website. They generate the XML using information keyed into the website
(or potentially copy/pasted in) by the customer. They then send the XML
to our web service via HTTP protocol (Post Method). Our web services
writes the posted XML data to a file on our IFS and executes the stored
procedure on the iSeries, which parses the XML using
http_parse_xml_stmf.
Our current parameters are as follows:
if (http_parse_xml_stmf( filename
: HTTP_XML_CALC
: *null
: %paddr(Incoming)
: *null ) < 0 );
I've also learned that, if they key the information into their site via
the keyboard, the XML works. The problem only happens when they
copy/paste the information into their site. The potential that
copy/pasting data onto the site means we don't necessarily know what
we're getting. Naturally, while we're in testing, we could tell Valtech
not to copy/paste the data, but potentially the customers might
copy/paste their own information when we go live.
I found and read some old messages to you from others who had similar
problems. One person used 1252 as the second parameter. The XML DOES
have the tag: <?xml version="1.0" encoding="UTF-8" ?>
I would expect that Valtech would be sending the data properly
formatted, but apparently they're taking whatever is fed into their
site and loading it into their XML. Is this something they need to fix
on their end or that I need to handle on my end?
Thanks for your help,
Charlie