[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RNQ0202 error calling http_url_post_xml



First, Scott, thanks for your fabulour library. Without it, I wouldn't
have a clue where to start when it comes to calling a SOAP service
from RPG.

I do have a bit of a problem at the moment, though. Calling the
attached program, I get an error message that I don't know how to
interpret:

The call to HTTP_URL_P ended in error (C G D F)

That's a (RNQ0202).

A look at the debug output (also attached) seems to confirm that the
call has been made sucessfully, and a valid reply has been received. I
think I've broken the code that looks at the reply, but I don't know
how to debug it. If I set a breakpoint in my Incoming procedure, it
never seems to get there.

Any pointers as to how I can find out what's wrong?

--
Cheers,
Simon B
simon@xxxxxxxxxxxxxxxxxx
http://www.brunningonline.net/simon/blog/

Attachment: setmphavl.rpgle
Description: Binary data

HTTPAPI Ver 1.17 released 2006-09-23

http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /morph_ta/services/SystemAvailabilityServices HTTP/1.1
Host: 192.168.1.153:8080
User-Agent: http-api/1.17
Content-Type: text/xml; charset=utf-8
SOAPAction: setSystemAvailability
Expect: 100-continue
Content-Length: 682


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/1999/XMLSchema";><SOAP-ENV:Body> <ns1:setSystemAvailability xmlns:ns1="http://192.168.1.153:8080/morph_ta/services/SystemAvailabilityServices"; SOAP-ENC:root="1"><systemAvailable xsi:type="xsd:boolean">True</systemAvailable><authenticationUser xsi:type="xsd:string">TestUser</authenticationUser></ns1:setSystemAvailability></SOAP-ENV:Body></SOAP-ENV:Envelope>

recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Thu, 28 Sep 2006 16:16:23 GMT


SetError() #13: HTTP/1.1 200 OK
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
293

chunk size = 659
get_chunk_size returned 659
calling comm_blockread
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/1999/XMLSchema"; xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";><soapenv:Body><ns1:setSystemAvailabilityResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="http://192.168.1.153:8080/morph_ta/services/SystemAvailabilityServices";><setSystemAvailabilityReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>OK: System Availability set to true</setSystemAvailabilityReturn></ns1:setSystemAvailabilityResponse></soapenv:Body></soapenv:Envelope>
comm_blockread returned 659
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------