You shouldn’t need to have the code in
there for “data”. This is the HTTP header that you can encode using
http_url_post. Keep the “eval data1” in your code but try
this http_url_post: rc = http_url_POST('http://200.30.178.70/'
+ 'service.asmx/BuscarCliente'
+ 'PorNumeroCliente'
: %addr(data1)
: %len(%trimr(data1))
: '/tmp/httptest.html'
:
HTTP_TIMEOUT : HTTP_USERAGENT
:
'application/x-www-form-urlencoded'); You don’t have to pass in “data” from your
code. From: owner- Hi, I'm trying to acces a Web Service from the iSeries using the HTTPAPI,
what I need is to send the following request to the server: POST
/service.asmx/BuscarClientePorNumeroCliente HTTP/1.1 sUsuario=bancon&cClave=banconNumeroDeCliente=2356 I
modified the EXAMPLE4 UPS Tracking to do this, but I'm getin the error
:HTTP/1.1 400 Bad Request ( The data is invalid. ) this is
the contents of the httpappi_debug file on the Iseries.
™…ƒ¥™…¢—M]z@…•£…™…„
attached
is the code that I'm using from the EXAMPLE4, Thank
& Regards, Jeffr
Talavera |