I think HTTPAPI is brill but while I was trying to create a Web Service Consumer I kept getting an error in the above Procedure. I was wondering if the following code is correct
select;
when (%parms < 7);
wwRC = http_url_post_raw( peURL
: pePostData
: pePostDataLen
: 5
: %paddr(ParseXML) );
when (%parms >= 7);
wwRC = http_url_post_raw( peURL
: pePostData
: pePostDataLen
: 6
: %paddr(ParseXML)
: peTimeout );
when (%parms >= 8);
wwRC = http_url_post_raw( peURL …………………. Etc
To me it doesn't make sense to have to call http_url_post_raw 3 or 4 times if there are 10 parameters. I am probably wrong as I am no was a HTTP expert.
Anyway I got the Web Service working by removing the '>' signs. It runs really well and is v.cool. If this is a problem it might be also in other code in the Library.
Funny how the ancient AS400 (as the .NETer think is) can do Web Services.
Thanks for a great bit of code.
Eddie Smith
Ireland