|
We have an application to goes out to our credit card processor that--
is having an issue with an unexpected data length that causes the
WSD2RPG logic to throw an error.
The app works fine except for this one very good customer from Italy
who is giving us a new CC.
I am not familiar at all with WSDL2RPG and how to debug it.
Can anyone lend a hand.
Here is the HTTPAPI_Debug dump from a recent attempt.
--- Start of HTTPapi_Debug ---
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
** 2019-04-05-17.51.25.927000: Entering CMPWSApiPort_OnlineTrans(),
compiled for V7R1M0 New iconv() objects set, PostRem=1208. PostLoc=0.
ProtRem=819. ProtLoc=0
** 2019-04-05-17.54.01.917000: Authenticating preemptively
http_setauth(): entered
https_init(): entered
QSSLPCL = *TLSV1 *TLSV1.1 *TLSV1.2
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:
----------------------------------------------------------------------
---------------
-----BEGIN CERTIFICATE-----
(data removed)
-----END CERTIFICATE-----
Serial Number: 02:55
Common Name: CMPWS000076._.1
Locality: Norwalk,
Issuer CN: firstdata.com
Issuer Country: US
Issuer State/Province: GA
Issuer Locality: Atlanta
Issuer Org: First Data Corporation
Issuer Org Unit: Compass Host
Version: 1
not before: 20160524170631
Unknown Field: 17:06:31 24-05-2016
not after: 20260522170631
Unknown Field: 17:06:31 22-05-2026
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.5 Unknown Field:
03818D0030818902818100B03D0F8CFDADB4CD4D121B1719AA3E3C1AF5055F5FDDBA4B
B36273F3C3F7A24B4355216CBCB89FEC7058D294C745C6CEC52B8131CF2CD861F6D354
327B14669DF66BEFA2012EB503F8B8C7299660CAE2D8E53D5E0300CDD2B2B4D040BED1
C5ACFD31EE32EB5ED619043885ADF1539C5165DA7F70D2D8B5F47C4D20F46366F0FB02
03010001
Unknown Field: 1024
Unknown Field: 94C554951949A07E21ED3D1026E11D88 Unknown Field:
1.2.840.113549.2.5 Unknown Field:
C2B8CF69C67D0BEFE3CE6C50BBD9D85E4E82C36E
Unknown Field:
7C67DA14D3B8CDB4208564C1B19A043C5879FA2D65711AB46CB27D0FA393A52D
** 2019-04-05-17.55.40.410000: Sending request to server
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: mbi-inc.com
DNS server found: 10.2.7.2
DNS server found: 10.2.7.3
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: ws.firstdatacompass.com
----------------------------------------------------------------------
--------------- Dump of server-side certificate information:
----------------------------------------------------------------------
---------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
(data removed)
-----END CERTIFICATE-----
Serial Number: 4F:09:BE:9E:CD:19:C0:FB:4B:6D:3A:3F:06:6F:AD:18
Common Name: ws.firstdatacompass.com
Country: US
State/Province: Georgia
Locality: Atlanta
Org Unit: First Data Corporation
Issuer CN: Symantec Class 3 Secure Server CA - G4 Issuer Country: US
Issuer Org: Symantec Corporation Issuer Org Unit: Symantec Trust
Network
Version: 3
not before: 20170811200000
Unknown Field: 20:00:00 11-08-2017
not after: 20191010195959
Unknown Field: 19:59:59 10-10-2019
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11 Unknown Field:
0382010F003082010A0282010100B49E872A1655CF80AE9D6617AEB5B07C6533C5B41B
8A5674C3060B95B3C2406EA995A25E0D881F4AF78E12074A72D352E35393EC65A4D22F
F8297BC9F2697A3AC1A016F0FC3A7ABE474821ECC42C42A59B792FBB4C057A69B9C7B1
F1755A939094000AD7E17C6B4A16E0A037FA9C8BF921261271BB18EF3D6E0232212A94
01A3E10CF05383031BF10731A9DF400A900C769A9589E8103A98BAFE55A8EAFD5AA428
B183975AED3F69D26AC2B0B3EFEB297D9F7681DFB524EB0A9F403EA2E31BFDD7846F02
AD7C2D966B988E207406323277C2A4D4BA3F37DEC493F7136CE397D18E46B401B42C89
39A4392709C5822391AAD69D642B0313999F573C58068735C30203010001
Unknown Field: 2048
Unknown Field: CAE16741B75F9158CF8899011A1BDBB6 Unknown Field:
1.2.840.113549.2.5 Unknown Field:
6353DB8BB996BB95B59EC1921DBFCA3513939E1C
Unknown Field:
31C2CB38E48F2058AEF3897D18FABEC1CF553514D6F27807500E9AB30321AA36
Unknown Field: 5
Unknown Field: ws.firstdatacompass.com Unknown Field: 0 Unknown Field:
1.3.6.1.5.5.7.3.2 Unknown Field: 1.3.6.1.5.5.7.3.1 Unknown Field:
2.23.140.1.2.2 Unknown Field: http://ss.symcd.com
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
There are 0 cookies in the cache
POST /cmpwsapi/services HTTP/1.1
Host: ws.firstdatacompass.com:443
User-Agent: http-api/1.29
Content-Length: 1540
Authorization: Basic MDAwMDc2OkZEMDAwMDc2
Content-Type: text/xml
SOAPAction:
sendraw(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:cmpmsg="
http://firstdata.com/cmpwsapi/schemas/cmpmsg" xmlns:schema="
http://firstdata.com/cmpwsapi/schemas/cmpapi"><soapenv:Body><schema:On
lineTransRequest><schema:Transaction><cmpmsg:OrderNumber>B19095000167
</cmpmsg:OrderNumber><cmpmsg:Mop>MC</cmpmsg:Mop><cmpmsg:AccountNumber>0907820561716413</cmpmsg:AccountNumber><cmpmsg:ExpirationDate>0622</cmpmsg:ExpirationDate><cmpmsg:DivisionNumber>0000826531</cmpmsg:DivisionNumber><cmpmsg:Amount>000000000100</cmpmsg:Amount><cmpmsg:CurrencyCode>840</cmpmsg:CurrencyCode><cmpmsg:TransactionType>1</cmpmsg:TransactionType><cmpmsg:AccountNumberDesc>TOK</cmpmsg:AccountNumberDesc><cmpmsg:BillPaymentIndicator>N</cmpmsg:BillPaymentIndicator><cmpmsg:ActionCode>AU</cmpmsg:ActionCode></schema:Transaction><schema:AdditionalFormats><cmpmsg:AB><cmpmsg:TelephoneType>D</cmpmsg:TelephoneType><cmpmsg:TelephoneNumber>0000000000
</cmpmsg:TelephoneNumber><cmpmsg:NameText>SIGISMONDO *PIANCA
</cmpmsg:NameText><cmpmsg:Address1>VIA GIUSEPPE GARIBALDI N° 5
</cmpmsg:Address1><cmpmsg:Address2>31014 COLLE UMNERTO
(TREVISO</cmpmsg:Address2><cmpmsg:CountryCode>
</cmpmsg:CountryCode><cmpmsg:City>ITALY
</cmpmsg:City><cmpmsg:State>XX</cmpmsg:State><cmpmsg:PostalCode>
</cmpmsg:PostalCode></cmpmsg:AB><cmpmsg:TA><cmpmsg:TokenType>EBZD</cmp
msg:TokenType></cmpmsg:TA></schema:AdditionalFormats></schema:OnlineTr
ansRequest></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Fri, 05 Apr 2019 21:55:41 GMT
Server: Apache
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 438
Content-Type: text/xml;charset=utf-8
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 438
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body><ns3:OnlineTransResponse xmlns:ns2="
http://firstdata.com/cmpwsapi/schemas/cmpmsg" xmlns:ns3="
http://firstdata.com/cmpwsapi/schemas/cmpapi">
<ns3:ErrorMessage>
Exception occured in Compass formatter for online request field
name=AB field value=null </ns3:ErrorMessage>
</ns3:OnlineTransResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
** 2019-04-05-17.55.41.691000: Preparing to parse received message
WSDL2RPG: call stack frames:
Program Library Act.Group Statement Procedure
ZM0217P OMSMODS QILE 10500 ZM0217P
WS0510P OMSMODS QILE _QRNP_PEP_WS0510P
WS0510P OMSMODS QILE 46200 WS0510P
WSFDMS WSDL2RPG QILE 1934
CMPWSApiPort_OnlineTrans
HTTPAPIR4 LIBHTTP QILE 6297 HTTP_URL_POST_RAW2
HTTPAPIR4 LIBHTTP QILE 6813 HTTP_PERSIST_POST
HTTPAPIR4 LIBHTTP QILE 7020 HTTP_PERSIST_REQ
HTTPAPIR4 LIBHTTP QILE 4438 DO_OPER
HTTPAPIR4 LIBHTTP QILE 4662 RECVDOC
WSFDMS WSDL2RPG QILE 13028 HTTP_receiveResponse
WSFDMS WSDL2RPG QILE 13068 parseOrRedirectResponse
WSDL2RPGRT WSDL2RPG QILE 103000
WSDL2R97_XMLSAXParser_parse
EXPAT LIBHTTP QILE 28 XML_Parse
EXPAT LIBHTTP QILE 14 XML_ParseBuffer
EXPAT LIBHTTP QILE 5 prologInitProcessor
EXPAT LIBHTTP QILE 3 prologProcessor
EXPAT LIBHTTP QILE 130 doProlog
EXPAT LIBHTTP QILE 1 contentProcessor
EXPAT LIBHTTP QILE 199 doContent
WSDL2RPGRT WSDL2RPG QILE 238800 endElement
WSFDMS WSDL2RPG QILE 7773
schema_OnlineTransResponseEnd
WSDL2RPGRT WSDL2RPG QILE 113500
WSDL2R98_UnMarshaller_toStringV6
WSDL2RPGRT WSDL2RPG QILE 35200
WSDL2R90_AppMsg_sendEscMsgAndDump
WSDL2RPGRT WSDL2RPG QILE 39500
WSDL2R71_http_DebugLog_dumpCallStack
WSDL2RPGRT WSDL2RPG QILE 20200 WSDL2R80_CallStack_dump
WSDL2RPG: USR5023: Failed unmarshalling value 'Exception occured in
Compass formatter for online request field' of field '*N'.
Cause . . . . . : The following error message
prevented the value of field '*N' from being retrieved from XPath '*N/*N'.
Message text . : Field overflow. Field '*N' is too short to hold the
specified value. (60 versus 89 bytes)
received from procedure: BASICS1R1_f_sndPgmMsg
and statement: 54400 WSDL2RPG (eXpat error):
(-1009) Failed unmarshalling value 'Exception occured in Compass
formatter for online request field' of field '*N'.
received at line: 1
at column: 357
from procedure: WSDL2R97_XMLSAXParser_parse
and statement: 104700
** 2019-04-05-17.55.41.708000: Failed parsing XML message
** 2019-04-05-17.55.41.708000: Failed parsing XML message
SetError() #16: errno is currently 0
SetError() #16: recvdoc: saveproc: Not all data was written!
http_close(): entered
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
** 2019-04-05-17.58.49.923000: Preemptive authentication switched off
** 2019-04-05-17.58.49.925000: Leaving CMPWSApiPort_OnlineTrans()
--- End of HTTPapi_Debug ---
Paul Therrien
(203) 854-9400
Ext: 2230
ptherrien@xxxxxxxxxxx<mailto:ptherrien@xxxxxxxxxxx>
+++++ This email and related attachments may contain confidential
information intended exclusively for the addressee. Unauthorized use,
disclosure or distribution of this material is prohibited. If you
received this message in error, please advise the sender and delete
all copies of it. Content is provided by the individual sender and
does not necessarily reflect the views of the Company. Though sender
believes this transmission to be virus-free, it is the recipient's responsibility to ensure that it is.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.