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

Re: [Ftpapi] HTTPAPI https question



Try and change the debug level setting. Add this right after your http_debug call.
http_setOption('debug-level':'2');

On Wed, 2020-03-11 at 10:24 +0000, Lawrence Loz wrote:
Hi Bradley, I've posted as much info as I have, if the start time on these logs is not the start of the httpapi call, then please let me know, and if there is any other way of seeing the end time, other than the time returned from the webservice consumed, I'd be grateful, but otherwise these are the timings I am basing my problem on......  Sorry if I am putting up too much, but this is my last try for help here before maybe restructuring to see if it 

I've posted the 1st (new qzdasoinit job) and 2nd (same qzdasoinit job) and 3rd (new qzdasoinit job again) logs below. I've used the Start time as the file creation time and the end time as the time returned minus 1 second as the webservice we are consuming is on a system with the time set 1 second ahead. As you can see from the timings, the 1st ran from 09.06.35.364000 to  09.07.54 ... so 19 seconds and the 2nd ran from 09.07.41.580000 to 09.08.45 ... so 3 seconds, then the 3rd ran from 09.09.03.232000 to 09.10.22 ... so 19 seconds.

1st httpapi.log, new qzdasoinit job                    Filename: 20200304090635364000-CardUnload.txt

HTTPAPI Ver 1.39 released 2018-03-09
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: PARK.LAN
DNS server found: 10.1.2.15
DNS server found: 10.1.2.16
https_init(): entered
QSSLPCL = *OPSYS
SSL version 2 support disabled
SSL version 3 support disabled
Old interface to TLS version 1.0 support enabled
TLS version 1.0 support enabled
TLS version 1.1 support enabled
TLS version 1.2 support enabled
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: uat.mastercardwrapperservice.prl.co.uk
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIID8zCCAtugAwIBAgIJANCdINkTyN2RMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYD
VQQGEwJHQjETMBEGA1UECAwKTWVyc2V5c2lkZTETMBEGA1UEBwwKQmlya2VuaGVh
ZDEXMBUGA1UECgwOUGFyayBHcm91cCBwbGMxDDAKBgNVBAsMA0dUUzEvMC0GA1UE
AwwmdWF0Lm1hc3RlcmNhcmR3cmFwcGVyc2VydmljZS5wcmwuY28udWswHhcNMTYw
OTEzMTEwMDA3WhcNMjUxMTMwMTEwMDA3WjCBjzELMAkGA1UEBhMCR0IxEzARBgNV
BAgMCk1lcnNleXNpZGUxEzARBgNVBAcMCkJpcmtlbmhlYWQxFzAVBgNVBAoMDlBh
cmsgR3JvdXAgcGxjMQwwCgYDVQQLDANHVFMxLzAtBgNVBAMMJnVhdC5tYXN0ZXJj
YXJkd3JhcHBlcnNlcnZpY2UucHJsLmNvLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAu/aiIxCdjfp3N/zHEGNtf2n7T59PawTzwkYD1n30pyVlKUeI
1LcSYaULlmrVnvjZBpFsg2mMgCDHHd0n880gLGcJNtmbs6GAH18XEkle6snGF/Er
sW5DAnD1e1dIIrV8cTdAU6CvSCsUEHJwDceRi//KkQfJL8Pn4vkYDHt4oOnOVOeK
NolGNtjK2d5Qev6QkhK7E1jxJ0JZrzf1u9zQwnAqR3oDYxWGos9lieFs0mp4Mrqq
4OX9MllvIplSsp8NyRbkdjH+Jh70CYBM8T9tE3SRlCZPnnIxpfOGu6qXSoK7r7Ec
G8Zgb40BCT1Z3msAPWiVVqc1Q0VGvfG27kQD/wIDAQABo1AwTjAdBgNVHQ4EFgQU
TLzs4E9fK6ZcQggjnaWRLofzcX4wHwYDVR0jBBgwFoAUTLzs4E9fK6ZcQggjnaWR
LofzcX4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJwOFod+kpHRC
g53euD9g58vlNevXXhYlb0w4TSq8+kb51QjfWCIfBDeiA1hNi0I9UpTxYQPIvUKN
i6ObgPEtfR3zSQmNBIVAk46ETd0puduM8lrLVbE+pxb6AQPxkbdtm1ldCENwl+8Q
noK7x7n1r/84S0NWBRgWG882VodzgJjXVStftVa8whWQW2UylHOrpBIoPH3DUs/Q
daBpHNI8T2s4bgxz0cDuNkT4/LaKLFT0UzFMs6aCW6z4JPyQKZS+WfumrCUFkYzX
5JmwEvz1EHwAQ8AQ2DQDl7aGjWGyxplM1i/m2NIHkUCtiNI51XhFikb+gUq2yir+
6fgDJwonUA==
-----END CERTIFICATE-----
Serial Number: 00:D0:9D:20:D9:13:C8:DD:91
Common Name: uat.mastercardwrapperservice.prl.co.uk
Country: GB
State/Province: Merseyside
Locality: Birkenhead
Org Unit: Park Group plc
Org: GTS
Issuer CN: uat.mastercardwrapperservice.prl.co.uk
Issuer Country: GB
Issuer State/Province: Merseyside
Issuer Locality: Birkenhead
Issuer Org: Park Group plc
Issuer Org Unit: GTS
Version: 3
not before: 20160913120007
Unknown Field: 12:00:07 13-09-2016
not after: 20251130110007
Unknown Field: 11:00:07 30-11-2025
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field: 0382010F003082010A0282010100BBF6A223109D8DFA7737FCC710636D7F69FB4F9F4F6B04F3C24603D67DF4A72565294788D4B71261A50B966AD59EF8D906916C83698C8020C71DDD27F3CD202C670936D99BB3A1801F5F1712495EEAC9C617F12BB16E430270F57B574822B57C71374053A0AF482B141072700DC7918BFFCA9107C92FC3E7E2F9180C7B78A0E9CE54E78A36894636D8CAD9DE507AFE909212BB1358F1274259AF37F5BBDCD0C2702A477A03631586A2CF6589E16CD26A7832BAAAE0E5FD32596F229952B29F0DC916E47631FE261EF409804CF13F6D13749194264F9E7231A5F386BBAA974A82BBAFB11C1BC6606F8D01093D59DE6B003D689556A735434546BDF1B6EE4403FF0203010001
Unknown Field: 2048
Unknown Field: E924510EF58706DF1BB7D71D467A7DD8
Unknown Field: 1.2.840.113549.2.5
Unknown Field: 387322D513BA09BD13296CA7EFA4066BDC942F45
Unknown Field: 42B47C92F27E28F7220AA02B999DB02F2A698F0EAA13252C5432A8EF4FC7593D
Unknown Field: 1

Protocol Used: TLS Version 1.2
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /mastercard-wrapper-service/CardUnload HTTP/1.1
Host: uat.mastercardwrapperservice.prl.co.uk
User-Agent: http-api/1.29
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 848


senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.mastercard.ws.parkgroup.co.uk/"> <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" ><wsse:UsernameToken><wsse:Username>devsuppg@xxxxxxxxxxxxxxx</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b.ebTrw9s5</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ser:handleCardUnload><cardUnloadRequest><cardId>1177648599698579</cardId><cvv></cvv><pan></pan><parkReference></parkReference></cardUnloadRequest></ser:handleCardUnload></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2020 09:07:54 GMT
Strict-Transport-Security: max-age=63072000; includeSubdomains;
Content-Type: text/xml;charset=utf-8
Vary: Accept-Encoding
Set-Cookie: JSESSIONID=BF2CD35A710D2FA7FD927ABF9E56C781; Path=/mastercard-wrapper-service/; HttpOnly
Connection: close
Set-Cookie: TS01ce7a63=010c8805f678db10fd637b2803e840154d59e010efe5ea82f234e2e26b4b53040268bac57b7fe9834861c7434607c2c39a15ac753a; Path=/; Domain=.uat.mastercardwrapperservice.prl.co.uk
Set-Cookie: TS014c158a=010c8805f62cef306d2ddb9c4655092ef8560d66b6e5ea82f234e2e26b4b53040268bac57b2282a0bfd58435b43bde8b96fb336ebb83554d1cb4ba1b9b97e3d1993f132655; path=/mastercard-wrapper-service/
Transfer-Encoding: chunked


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
recvchunk(): entered
get_chunk_size(): entered
223

chunk size = 547
get_chunk_size returned 547
calling comm_blockread
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><S:Body><ns2:handleCardUnloadResponse xmlns:ns2="http://service.mastercard.ws.parkgroup.co.uk/"><cardUnloadResponse><amountUnload>20.05</amountUnload><availableBalance>0.0</availableBalance><blockedAmount>0.0</blockedAmount><currencyCode>GBP</currencyCode><message><status>OK</status></message></cardUnloadResponse></ns2:handleCardUnloadResponse></S:Body></S:Envelope>
comm_blockread returned 547


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.39 released 2018-03-09
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0

2st httpapi.log, same qzdasoinit job                    Filename: 20200304090741580000-CardUnload.txt

HTTPAPI Ver 1.39 released 2018-03-09
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: PARK.LAN
DNS server found: 10.1.2.15
DNS server found: 10.1.2.16
https_init(): entered
QSSLPCL = *OPSYS
SSL version 2 support disabled
SSL version 3 support disabled
Old interface to TLS version 1.0 support enabled
TLS version 1.0 support enabled
TLS version 1.1 support enabled
TLS version 1.2 support enabled
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: uat.mastercardwrapperservice.prl.co.uk
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIID8zCCAtugAwIBAgIJANCdINkTyN2RMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYD
VQQGEwJHQjETMBEGA1UECAwKTWVyc2V5c2lkZTETMBEGA1UEBwwKQmlya2VuaGVh
ZDEXMBUGA1UECgwOUGFyayBHcm91cCBwbGMxDDAKBgNVBAsMA0dUUzEvMC0GA1UE
AwwmdWF0Lm1hc3RlcmNhcmR3cmFwcGVyc2VydmljZS5wcmwuY28udWswHhcNMTYw
OTEzMTEwMDA3WhcNMjUxMTMwMTEwMDA3WjCBjzELMAkGA1UEBhMCR0IxEzARBgNV
BAgMCk1lcnNleXNpZGUxEzARBgNVBAcMCkJpcmtlbmhlYWQxFzAVBgNVBAoMDlBh
cmsgR3JvdXAgcGxjMQwwCgYDVQQLDANHVFMxLzAtBgNVBAMMJnVhdC5tYXN0ZXJj
YXJkd3JhcHBlcnNlcnZpY2UucHJsLmNvLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAu/aiIxCdjfp3N/zHEGNtf2n7T59PawTzwkYD1n30pyVlKUeI
1LcSYaULlmrVnvjZBpFsg2mMgCDHHd0n880gLGcJNtmbs6GAH18XEkle6snGF/Er
sW5DAnD1e1dIIrV8cTdAU6CvSCsUEHJwDceRi//KkQfJL8Pn4vkYDHt4oOnOVOeK
NolGNtjK2d5Qev6QkhK7E1jxJ0JZrzf1u9zQwnAqR3oDYxWGos9lieFs0mp4Mrqq
4OX9MllvIplSsp8NyRbkdjH+Jh70CYBM8T9tE3SRlCZPnnIxpfOGu6qXSoK7r7Ec
G8Zgb40BCT1Z3msAPWiVVqc1Q0VGvfG27kQD/wIDAQABo1AwTjAdBgNVHQ4EFgQU
TLzs4E9fK6ZcQggjnaWRLofzcX4wHwYDVR0jBBgwFoAUTLzs4E9fK6ZcQggjnaWR
LofzcX4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJwOFod+kpHRC
g53euD9g58vlNevXXhYlb0w4TSq8+kb51QjfWCIfBDeiA1hNi0I9UpTxYQPIvUKN
i6ObgPEtfR3zSQmNBIVAk46ETd0puduM8lrLVbE+pxb6AQPxkbdtm1ldCENwl+8Q
noK7x7n1r/84S0NWBRgWG882VodzgJjXVStftVa8whWQW2UylHOrpBIoPH3DUs/Q
daBpHNI8T2s4bgxz0cDuNkT4/LaKLFT0UzFMs6aCW6z4JPyQKZS+WfumrCUFkYzX
5JmwEvz1EHwAQ8AQ2DQDl7aGjWGyxplM1i/m2NIHkUCtiNI51XhFikb+gUq2yir+
6fgDJwonUA==
-----END CERTIFICATE-----
Serial Number: 00:D0:9D:20:D9:13:C8:DD:91
Common Name: uat.mastercardwrapperservice.prl.co.uk
Country: GB
State/Province: Merseyside
Locality: Birkenhead
Org Unit: Park Group plc
Org: GTS
Issuer CN: uat.mastercardwrapperservice.prl.co.uk
Issuer Country: GB
Issuer State/Province: Merseyside
Issuer Locality: Birkenhead
Issuer Org: Park Group plc
Issuer Org Unit: GTS
Version: 3
not before: 20160913120007
Unknown Field: 12:00:07 13-09-2016
not after: 20251130110007
Unknown Field: 11:00:07 30-11-2025
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field: 0382010F003082010A0282010100BBF6A223109D8DFA7737FCC710636D7F69FB4F9F4F6B04F3C24603D67DF4A72565294788D4B71261A50B966AD59EF8D906916C83698C8020C71DDD27F3CD202C670936D99BB3A1801F5F1712495EEAC9C617F12BB16E430270F57B574822B57C71374053A0AF482B141072700DC7918BFFCA9107C92FC3E7E2F9180C7B78A0E9CE54E78A36894636D8CAD9DE507AFE909212BB1358F1274259AF37F5BBDCD0C2702A477A03631586A2CF6589E16CD26A7832BAAAE0E5FD32596F229952B29F0DC916E47631FE261EF409804CF13F6D13749194264F9E7231A5F386BBAA974A82BBAFB11C1BC6606F8D01093D59DE6B003D689556A735434546BDF1B6EE4403FF0203010001
Unknown Field: 2048
Unknown Field: E924510EF58706DF1BB7D71D467A7DD8
Unknown Field: 1.2.840.113549.2.5
Unknown Field: 387322D513BA09BD13296CA7EFA4066BDC942F45
Unknown Field: 42B47C92F27E28F7220AA02B999DB02F2A698F0EAA13252C5432A8EF4FC7593D
Unknown Field: 1

Protocol Used: TLS Version 1.2
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /mastercard-wrapper-service/CardUnload HTTP/1.1
Host: uat.mastercardwrapperservice.prl.co.uk
User-Agent: http-api/1.29
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 848


senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.mastercard.ws.parkgroup.co.uk/"> <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" ><wsse:UsernameToken><wsse:Username>devsuppg@xxxxxxxxxxxxxxx</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b.ebTrw9s5</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ser:handleCardUnload><cardUnloadRequest><cardId>1177648595645038</cardId><cvv></cvv><pan></pan><parkReference></parkReference></cardUnloadRequest></ser:handleCardUnload></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2020 09:08:45 GMT
Strict-Transport-Security: max-age=63072000; includeSubdomains;
Content-Type: text/xml;charset=utf-8
Vary: Accept-Encoding
Set-Cookie: JSESSIONID=8F1C8D9B62BC65864E6FF01C8628C835; Path=/mastercard-wrapper-service/; HttpOnly
Connection: close
Set-Cookie: TS01ce7a63=010c8805f644461e44942cdfeaf91c388c9f3217addd8f20a8c72fd036bc58e15093f0b19c9277c5dbab904340d13e86dc21a4ebaa; Path=/; Domain=.uat.mastercardwrapperservice.prl.co.uk
Set-Cookie: TS014c158a=010c8805f651ea4c57261894909546dc2795c708fddd8f20a8c72fd036bc58e15093f0b19c3b3a760a0bb487f8da70357a18c2d06d9852b97c5cab6d5765c950afd51337a8; path=/mastercard-wrapper-service/
Transfer-Encoding: chunked


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
recvchunk(): entered
get_chunk_size(): entered
223

chunk size = 547
get_chunk_size returned 547
calling comm_blockread
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><S:Body><ns2:handleCardUnloadResponse xmlns:ns2="http://service.mastercard.ws.parkgroup.co.uk/"><cardUnloadResponse><amountUnload>20.04</amountUnload><availableBalance>0.0</availableBalance><blockedAmount>0.0</blockedAmount><currencyCode>GBP</currencyCode><message><status>OK</status></message></cardUnloadResponse></ns2:handleCardUnloadResponse></S:Body></S:Envelope>
comm_blockread returned 547


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.39 released 2018-03-09
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0


3rd httpapi.log, new qzdasoinit job again           Filename: 20200304090903232000-CardUnload.txt

HTTPAPI Ver 1.39 released 2018-03-09
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: PARK.LAN
DNS server found: 10.1.2.15
DNS server found: 10.1.2.16
https_init(): entered
QSSLPCL = *OPSYS
SSL version 2 support disabled
SSL version 3 support disabled
Old interface to TLS version 1.0 support enabled
TLS version 1.0 support enabled
TLS version 1.1 support enabled
TLS version 1.2 support enabled
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: uat.mastercardwrapperservice.prl.co.uk
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIID8zCCAtugAwIBAgIJANCdINkTyN2RMA0GCSqGSIb3DQEBCwUAMIGPMQswCQYD
VQQGEwJHQjETMBEGA1UECAwKTWVyc2V5c2lkZTETMBEGA1UEBwwKQmlya2VuaGVh
ZDEXMBUGA1UECgwOUGFyayBHcm91cCBwbGMxDDAKBgNVBAsMA0dUUzEvMC0GA1UE
AwwmdWF0Lm1hc3RlcmNhcmR3cmFwcGVyc2VydmljZS5wcmwuY28udWswHhcNMTYw
OTEzMTEwMDA3WhcNMjUxMTMwMTEwMDA3WjCBjzELMAkGA1UEBhMCR0IxEzARBgNV
BAgMCk1lcnNleXNpZGUxEzARBgNVBAcMCkJpcmtlbmhlYWQxFzAVBgNVBAoMDlBh
cmsgR3JvdXAgcGxjMQwwCgYDVQQLDANHVFMxLzAtBgNVBAMMJnVhdC5tYXN0ZXJj
YXJkd3JhcHBlcnNlcnZpY2UucHJsLmNvLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAu/aiIxCdjfp3N/zHEGNtf2n7T59PawTzwkYD1n30pyVlKUeI
1LcSYaULlmrVnvjZBpFsg2mMgCDHHd0n880gLGcJNtmbs6GAH18XEkle6snGF/Er
sW5DAnD1e1dIIrV8cTdAU6CvSCsUEHJwDceRi//KkQfJL8Pn4vkYDHt4oOnOVOeK
NolGNtjK2d5Qev6QkhK7E1jxJ0JZrzf1u9zQwnAqR3oDYxWGos9lieFs0mp4Mrqq
4OX9MllvIplSsp8NyRbkdjH+Jh70CYBM8T9tE3SRlCZPnnIxpfOGu6qXSoK7r7Ec
G8Zgb40BCT1Z3msAPWiVVqc1Q0VGvfG27kQD/wIDAQABo1AwTjAdBgNVHQ4EFgQU
TLzs4E9fK6ZcQggjnaWRLofzcX4wHwYDVR0jBBgwFoAUTLzs4E9fK6ZcQggjnaWR
LofzcX4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAJwOFod+kpHRC
g53euD9g58vlNevXXhYlb0w4TSq8+kb51QjfWCIfBDeiA1hNi0I9UpTxYQPIvUKN
i6ObgPEtfR3zSQmNBIVAk46ETd0puduM8lrLVbE+pxb6AQPxkbdtm1ldCENwl+8Q
noK7x7n1r/84S0NWBRgWG882VodzgJjXVStftVa8whWQW2UylHOrpBIoPH3DUs/Q
daBpHNI8T2s4bgxz0cDuNkT4/LaKLFT0UzFMs6aCW6z4JPyQKZS+WfumrCUFkYzX
5JmwEvz1EHwAQ8AQ2DQDl7aGjWGyxplM1i/m2NIHkUCtiNI51XhFikb+gUq2yir+
6fgDJwonUA==
-----END CERTIFICATE-----
Serial Number: 00:D0:9D:20:D9:13:C8:DD:91
Common Name: uat.mastercardwrapperservice.prl.co.uk
Country: GB
State/Province: Merseyside
Locality: Birkenhead
Org Unit: Park Group plc
Org: GTS
Issuer CN: uat.mastercardwrapperservice.prl.co.uk
Issuer Country: GB
Issuer State/Province: Merseyside
Issuer Locality: Birkenhead
Issuer Org: Park Group plc
Issuer Org Unit: GTS
Version: 3
not before: 20160913120007
Unknown Field: 12:00:07 13-09-2016
not after: 20251130110007
Unknown Field: 11:00:07 30-11-2025
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field: 0382010F003082010A0282010100BBF6A223109D8DFA7737FCC710636D7F69FB4F9F4F6B04F3C24603D67DF4A72565294788D4B71261A50B966AD59EF8D906916C83698C8020C71DDD27F3CD202C670936D99BB3A1801F5F1712495EEAC9C617F12BB16E430270F57B574822B57C71374053A0AF482B141072700DC7918BFFCA9107C92FC3E7E2F9180C7B78A0E9CE54E78A36894636D8CAD9DE507AFE909212BB1358F1274259AF37F5BBDCD0C2702A477A03631586A2CF6589E16CD26A7832BAAAE0E5FD32596F229952B29F0DC916E47631FE261EF409804CF13F6D13749194264F9E7231A5F386BBAA974A82BBAFB11C1BC6606F8D01093D59DE6B003D689556A735434546BDF1B6EE4403FF0203010001
Unknown Field: 2048
Unknown Field: E924510EF58706DF1BB7D71D467A7DD8
Unknown Field: 1.2.840.113549.2.5
Unknown Field: 387322D513BA09BD13296CA7EFA4066BDC942F45
Unknown Field: 42B47C92F27E28F7220AA02B999DB02F2A698F0EAA13252C5432A8EF4FC7593D
Unknown Field: 1

Protocol Used: TLS Version 1.2
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /mastercard-wrapper-service/CardUnload HTTP/1.1
Host: uat.mastercardwrapperservice.prl.co.uk
User-Agent: http-api/1.29
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 848


senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.mastercard.ws.parkgroup.co.uk/"> <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" ><wsse:UsernameToken><wsse:Username>devsuppg@xxxxxxxxxxxxxxx</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">b.ebTrw9s5</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ser:handleCardUnload><cardUnloadRequest><cardId>1177648535720586</cardId><cvv></cvv><pan></pan><parkReference></parkReference></cardUnloadRequest></ser:handleCardUnload></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2020 09:10:22 GMT
Strict-Transport-Security: max-age=63072000; includeSubdomains;
Content-Type: text/xml;charset=utf-8
Vary: Accept-Encoding
Set-Cookie: JSESSIONID=CC865F91501E29CF12A21C7FE853BABE; Path=/mastercard-wrapper-service/; HttpOnly
Connection: close
Set-Cookie: TS01ce7a63=010c8805f6433e4e1521b5dcd80ac792584032b79b6af87d651628c9790780669e3e9b01b505f5457ae9257c2b7c5f37c5da9a7144; Path=/; Domain=.uat.mastercardwrapperservice.prl.co.uk
Set-Cookie: TS014c158a=010c8805f6ed6a290c0902c4844efdec03f7bdede56af87d651628c9790780669e3e9b01b5b33ee6d14240481364e1fcac02dd88ee0f47ceeea5fa6c915d5c8c91c03f47de; path=/mastercard-wrapper-service/
Transfer-Encoding: chunked


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
recvchunk(): entered
get_chunk_size(): entered
223

chunk size = 547
get_chunk_size returned 547
calling comm_blockread
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><S:Body><ns2:handleCardUnloadResponse xmlns:ns2="http://service.mastercard.ws.parkgroup.co.uk/"><cardUnloadResponse><amountUnload>20.03</amountUnload><availableBalance>0.0</availableBalance><blockedAmount>0.0</blockedAmount><currencyCode>GBP</currencyCode><message><status>OK</status></message></cardUnloadResponse></ns2:handleCardUnloadResponse></S:Body></S:Envelope>
comm_blockread returned 547


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.39 released 2018-03-09
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0

http_api_log extract





From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> on behalf of B Stone <bvstone@xxxxxxxxx>
Sent: 10 March 2020 18:36
To: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] HTTPAPI https question
 
Post the log.  Then we can see where it seems to be taking long.

But, when you say the first time is slow, then after that it's fast, it tells me that possibly it will be startup of the inhouse job.  There's no reason a client would take longer the first time that I can think of, but when you initiate a new server job on the server side that can sometimes take a while, especially with Java.  

On Tue, Mar 10, 2020 at 11:13 AM Lawrence Loz <loz0707@xxxxxxxxxxxxx> wrote:
Is there any way of getting more meaningful information out of the debug/http log option, to get some kind of idea as to why the log is giving these timings?


From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> on behalf of Scott Klement <sk@xxxxxxxxxxxxxxxx>
Sent: 10 March 2020 16:00
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] HTTPAPI https question
 

Hello,


I'm not aware of any reason that it should take this long to connect.    When I make connections to https URLs, they take a tiny fraction of a second to connect.  I have no experience with connections taking as long as 10 seconds, or even 3 seconds.  Sorry.


-SK


On 3/10/2020 8:18 AM, Lawrence Loz wrote:

Hi,

 

I’ve been asked to look at a performance issue with some webservice service programs written by another programmer in our company who has now moved on. They are written using HTTPAPI and are calling https urls which in this instance happen to be a website within our company also, but not on the iseries.

 

The problem is that on the 1st call the process takes about 10 seconds, but on subsequent calls it only takes about 3 seconds. This seems to be happening on all of webservices written using HTTPAPI, but I am concentrating on one in the hope that, fix that and the others will follow suit.

 

Is there any way of reducing the overhead on the 1st call?

 

The company website calls the iseries using stored procedures, the iseries then does a number of webservice calls and processes, but the website has a 30 second timeout and so the web site often fails on the 1st call because of timeout even through the iseries is eventually succesful, but is then successful on subsequent calls as the iseries processes these within the timeout limit.

By calling the stored procedure direct, observing the timing of the SQL and also looking at the httpapi.log in debug, I’ve arrived at timings.

 

If there’s anything you can suggest to alter in the way we are using HTTPAPI, I’d be really grateful.

 

I’ve copied a section of the RPG code below, to hopefully help.

 

Thanks,               Lawrence

 

http_setCCSIDs(1208: 0);                                      

w#logfile =                                                   

            '/webservices/'+%subst(#1Library:2:3)+            

               '/http_api_log/' + %char(%timestamp:*ISO0)+    

               '-CardUnload.txt';                             

http_debug(*ON:w#logfile);                                    

http_use_cookies(*OFF);                                       

w#tempFile = http_tempfile(); 

rc = http_post( w#endpoint                         

              : %addr(SOAP) + VARYINGDATAOFFSET    

              : %len(SOAP)                         

              : %trim(w#tempfile)                  

              : HTTP_TIMEOUT                       

              : HTTP_USERAGENT                     

              : 'text/xml; charset=UTF-8'          

              : '""' );                            

w#fd = open( %trim(w#tempFile)                     

             : O_CREAT + O_RDWR + O_EXCL           

             : S_IRWXU );                           

                                                    

if (rc<>1);                                          

………….

 

//LL01- https_cleanup();            //*  we did have this in but have removed it and it doesn’t seem to make any difference either way *//

                             





  Kevin  Bucknum
                   Senior Programmer Analyst
                   MEDDATA / MEDTRON
                   120 Innwood Drive
                   Covington LA 70433
                   Local: 985-893-2550
                   Toll Free: 877-893-2550
                 https://www.medtronsoftware.com



CONFIDENTIALITY NOTICE

This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged.  This information is intended only for the use of the individual or entity named above.  The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled.  If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED.  If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi