[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
peSOAPAction has no value
Sender: daparnin@xxxxxxxxxxxxxxxxxx
I'm trying to do a http_url_post_stmf with the HTTPAPI beta. I think that
it's choking on the MIME encoding that I did on the file that I want to
upload.
When the program tries to post I get "The call to HTTP_URL_P ended in error
(C G D F)". The error message is:
Pointer not set for location referenced.
Function check. MCH3601 unmonitored by HTTPAPIR4 at statement
0000005313,
instruction X'0000'.
When I debug the program sure enough, peSOAPAction isn't set (in
http_url_post_raw2...).
5311 5310 C* If no SOAPaction, pass '*OMIT' to next proc
5312 5311 c if %parms > 8
5313 5312 c eval p_SOAPAction = %addr(wwSA)
5314 5313 c eval wwSOAPAction = peSOAPAction
5315 5314 c else
5316 5315 c eval p_SOAPAction = *NULL
5317 5316 c endif
My code to post looks like this:
C Eval rc=http_url_post_stmf(%trimr(url):
C '/ACH/ACHNISCO.TXT':
C IFSFILE:
C 60:
C 'Mozilla/5.0 (X11; U; OS400)':
C 'multipart/form-data; boundary-
C MIMEBoundary')
The ACHNISCO.TXT file looks like this:
--MIMEBoundary
Content-Disposition: form-data; name="File"
Content-Type: text/plain
ACHNISCO.TXT
--MIMEBoundary
Content-Disposition: form-data;name="File";filename="ACHNISCO.txt"
Content-Type: text/plain
$$ADD ID=NKSUSER1 BID='NWFACH17788120P=NISCOZZZ'
101 09100001913517639580408261103A094101NORWEST BANK NISHIKAWA
STANDARD CO
.
. Data goes here
.
--MIMEBoundary--
What's wrong with this picture???
Dave Parnin
Nishikawa Standard Company
Topeka, IN 46571
daparnin@xxxxxxxxxxxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------