PawPatrol
Member
XRCS_getMathNumericFromElement in C Business function fails to read Mathnumeric field of value 0 in XML.
XML response with ZERO in mathnumeric field mnExpirationMonth is shown below-
Mar 30 16:55:51.913568 jdecallsbf.c476 - jdeCallBusinessService - bssvPayload contents after to call to Business Function:
Mar 30 16:55:51.913592 jdecallsbf.c491 - <?xml version='1.0' encoding='UTF-8'?>
<retrieve-payment-instrument-vO>
<mn-expiration-month> <currency-code/> <currency-decimals>0</currency-decimals> <value>0</value> </mn-expiration-month>
<mn-expiration-year> <currency-code/> <currency-decimals>0</currency-decimals> <value>0</value> </mn-expiration-year>
<sz-address-line1/>
<sz-address-line2/>
<sz-administrative-area/>
<sz-card-type/>
<sz-country/>
<sz-email-address/>
<sz-first-name/>
<sz-instrument-identifier/>
<sz-last-name/>
<sz-locality/>
<sz-masked-credit-card-number/>
<sz-merchant-iD>XX</sz-merchant-iD>
<sz-payment-instrument>99999999999999999999</sz-payment-instrument>
<sz-phone-number/> <sz-postal-code/>
<sz-return-code>404</sz-return-code>
<sz-return-message>Endpoint URL not found</sz-return-message>
</retrieve-payment-instrument-vO>
The error encountered by API XRCS_getMathNumericFromElement is given below-
Mar 30 16:55:51.913616 b5503xxx.c561 - B5503XXX: After Call to SOAP API via BSSV JC553XXX-ModifXXXProcessor.retrievePaymentInstrumentSOAPCall
Mar 30 16:55:51.913632 b5503xxx.c580 - B5503XXX: Call to Webservice ModifyXXXProcessor.retrievePaymentInstrument returned NO ERROR
Mar 30 16:55:51.914592 XercesWrapper.cpp4810 - XRCS_getMathNumericFromElement: valueElemNodeList->getLength is less than or equal to 0, returning error
Mar 30 16:55:51.914728 b5503xxx.c646 - XRCS_getMathNumericFromElement failed
Mar 30 16:55:51.914784 XercesWrapper.cpp346 - Entering XRCS_freeParser
XML Read of Mathnumeric value of ZERO fails. Is XRCS_getMathNumericFromElement not capable of reading ZERO value of MathNumeric?
XML response with ZERO in mathnumeric field mnExpirationMonth is shown below-
Mar 30 16:55:51.913568 jdecallsbf.c476 - jdeCallBusinessService - bssvPayload contents after to call to Business Function:
Mar 30 16:55:51.913592 jdecallsbf.c491 - <?xml version='1.0' encoding='UTF-8'?>
<retrieve-payment-instrument-vO>
<mn-expiration-month> <currency-code/> <currency-decimals>0</currency-decimals> <value>0</value> </mn-expiration-month>
<mn-expiration-year> <currency-code/> <currency-decimals>0</currency-decimals> <value>0</value> </mn-expiration-year>
<sz-address-line1/>
<sz-address-line2/>
<sz-administrative-area/>
<sz-card-type/>
<sz-country/>
<sz-email-address/>
<sz-first-name/>
<sz-instrument-identifier/>
<sz-last-name/>
<sz-locality/>
<sz-masked-credit-card-number/>
<sz-merchant-iD>XX</sz-merchant-iD>
<sz-payment-instrument>99999999999999999999</sz-payment-instrument>
<sz-phone-number/> <sz-postal-code/>
<sz-return-code>404</sz-return-code>
<sz-return-message>Endpoint URL not found</sz-return-message>
</retrieve-payment-instrument-vO>
The error encountered by API XRCS_getMathNumericFromElement is given below-
Mar 30 16:55:51.913616 b5503xxx.c561 - B5503XXX: After Call to SOAP API via BSSV JC553XXX-ModifXXXProcessor.retrievePaymentInstrumentSOAPCall
Mar 30 16:55:51.913632 b5503xxx.c580 - B5503XXX: Call to Webservice ModifyXXXProcessor.retrievePaymentInstrument returned NO ERROR
Mar 30 16:55:51.914592 XercesWrapper.cpp4810 - XRCS_getMathNumericFromElement: valueElemNodeList->getLength is less than or equal to 0, returning error
Mar 30 16:55:51.914728 b5503xxx.c646 - XRCS_getMathNumericFromElement failed
Mar 30 16:55:51.914784 XercesWrapper.cpp346 - Entering XRCS_freeParser
XML Read of Mathnumeric value of ZERO fails. Is XRCS_getMathNumericFromElement not capable of reading ZERO value of MathNumeric?