[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
internal server error
Hi all,
I have modified one of the httpapi examples to use for my own
purposes, when i run the appl. it returns with "HTTP/1.1 500 Internal
Server Error " indicating that
i am sending no parameter despite i do. Actually it doesn't perceive
my paramater (and supposes as zero). Does anyone has an idea about why
this error might occur ?
Could this be an encoding stuff ?
Thanks in advance,
This is the simplest form of my code :
H DFTACTGRP(*NO) BNDDIR('HTTPAPI':'QC2LE')
/copy httpapi_h
D SOAP s 32767A varying
D rc s 10I 0
c movel '17234358104' idnumber 11
/free
SOAP =
'<?xml version="1.0" encoding="utf-8" standalone="no"?>'
+'<SOAP-ENV:Envelope'
+' xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"'
+' xmlns:tns="http://kps.nvi.gov.tr/WS/Public/">'
+'<SOAP-ENV:Body>'
+' <tns:TCKimlikNoDogrula>'
+' <tns:tcKimlikNo>'+ %trim(idnumber) --the parameter i send,
BY-- + '</tns:tcKimlikNo>
+' </tns:TCKimlikNoDogrula>'
+'</SOAP-ENV:Body>'
+'</SOAP-ENV:Envelope>';
http_debug(*ON);
rc = http_url_post(
'http://tckimlik.nvi.gov.tr/kpspublic.asmx'
: %addr(SOAP) + 2
: %len(SOAP)
: '/tmp/idnumber.xml'
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml'
:
'http://kps.nvi.gov.tr/WS/Public/TCKimlikNoDogrula');
if (rc <> 1);
http_crash();
endif;
And here is the response in debug file :
HTTPAPI Ver 1.17 released 2006-09-23
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /kpspublic.asmx HTTP/1.1
Host: tckimlik.nvi.gov.tr
User-Agent: http-api/1.17
Content-Type: text/xml
SOAPAction: http://kps.nvi.gov.tr/WS/Public/TCKimlikNoDogrula
Expect: 100-continue
Content-Length: 333
recvresp(): entered
HTTP/1.1 100 Continue
SetError() Ö13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="utf-8"
standalone="no"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:tns="http://kps.nvi.gov.tr/WS/Public/"><SOAP-ENV:Body>
<tns:TCKimlikNoDogrula>
<tns:tcKimlikNo>17234358104</tns:tcKimlikNo>
</tns:TCKimlikNoDogrula></SOAP-ENV:Body></SOAP-ENV:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Mon, 13 Nov 2006 09:25:12 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: KaleWEB
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 487
SetError() Ö13: HTTP/1.1 500 Internal Server Error
recvdoc parms: identity 487
header_load_cookies() entered
recvdoc(): entered
SetError() Ö0:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><s
oap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reaso
n><soap:Text xml:lang="en">Server was unable to process request.
---> T.C. Kimlik No : 0 geçersizdir. (Identity Number :0 is
invalid, BY)</soap:Text></soap:Reason><soap:Detail
/></soap:Fault></soap:Body></soap:Envelope>
SetError() Ö13: HTTP/1.1 500 Internal Server Error
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------