Hi,
I use Libhttp for Webservice in Saop for few years now. But now i need to try to call a webservice with Post method. every time i try i get an error 404 but with SoapUI i don't have this problem so i don't realy now what is missing me??
thank you for your help.
this is example of httplog
HTTPAPI Ver 1.35 released 2017-05-03
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST / HTTP/1.1
Host: xxx.xxx.xxx.xxx:8085
SOAPAction:
Content-Length: 627
senddoc(): entered
{"id":211980,"robot":"Robot1","warehouse":"SQ3" ,"a ctivity":"DSG","ref_do":"701734115","year":9,"tota l_packages":60, "comment_l101":" ....
recvresp(): entered
HTTP/1.1 404 Not Found
content-type: application/json
content-length: 57
date: Sat, 01 May 2021 09:23:28 GMT
SetError() £13: HTTP/1.1 404 Not Found
recvresp(): end with 404
recvdoc parms: identity 57
header_load_cookies() entered
recvdoc(): entered
SetError() £0:
recvdoc(): Receiving 57 bytes.
{"error_code":1000,"error_message":"Rejection(N otF ound)"}
SetError() £13: HTTP/1.1 404 Not Found
http_close(): entered
HTTPAPI Ver 1.35 released 2017-05-03
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
I use Libhttp for Webservice in Saop for few years now. But now i need to try to call a webservice with Post method. every time i try i get an error 404 but with SoapUI i don't have this problem so i don't realy now what is missing me??
thank you for your help.
this is example of httplog
HTTPAPI Ver 1.35 released 2017-05-03
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
DNS server found: xxx.xxx.xxx.xxx
Nagle's algorithm (TCP_NODELAY) disabled.
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST / HTTP/1.1
Host: xxx.xxx.xxx.xxx:8085
SOAPAction:
Content-Length: 627
senddoc(): entered
{"id":211980,"robot":"Robot1","warehouse":"SQ3" ,"a ctivity":"DSG","ref_do":"701734115","year":9,"tota l_packages":60, "comment_l101":" ....
recvresp(): entered
HTTP/1.1 404 Not Found
content-type: application/json
content-length: 57
date: Sat, 01 May 2021 09:23:28 GMT
SetError() £13: HTTP/1.1 404 Not Found
recvresp(): end with 404
recvdoc parms: identity 57
header_load_cookies() entered
recvdoc(): entered
SetError() £0:
recvdoc(): Receiving 57 bytes.
{"error_code":1000,"error_message":"Rejection(N otF ound)"}
SetError() £13: HTTP/1.1 404 Not Found
http_close(): entered
HTTPAPI Ver 1.35 released 2017-05-03
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
Comment