cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unexpected Element ErrorResponse error from SDK

Hi, 

 

I'm getting the following exception thrown from the SDK when attempting to refund a customer's card (this code is running in production). The exception is repeatable and seems associated with a specific card. However, the exception itself seems to arise from parsing of the SOAP response. Has anyone else encountered this issue before? Is there a way to trap the raw SOAP XML response and log  it? 

 

This is running on anet-sdk-java v.1.9.2. on a Solaris machine, java 1.8.0_144, 

 

Thanks,


A. 

 

net.authorize.util.XmlUtility - Exception Details-> Code:'null', Message:'unexpected element 

(uri:"AnetApi/xml/v1/schema/AnetApiSchema.xsd", local:"ErrorResponse"). 

Expected elements are <{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBCancelSubscriptionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBCreateSubscriptionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionListResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionStatusResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBUpdateSubscriptionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}authenticateTestResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerPaymentProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerProfileTransactionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerShippingAddressResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}createTransactionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}decryptPaymentDataResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}deleteCustomerPaymentProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}deleteCustomerProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}deleteCustomerShippingAddressResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getAUJobDetailsResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getAUJobSummaryResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getBatchStatisticsResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileListResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerProfileIdsResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerShippingAddressResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getHostedPaymentPageResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getHostedProfilePageResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getMerchantDetailsResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getSettledBatchListResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getTransactionDetailsResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getTransactionListResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}getUnsettledTransactionListResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}isAliveResponse>,<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}logoutResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}mobileDeviceLoginResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}mobileDeviceRegistrationResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}sendCustomerTransactionReceiptResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerPaymentProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerProfileResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerShippingAddressResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateHeldTransactionResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateSplitTenderGroupResponse>,
<{AnetApi/xml/v1/schema/AnetApiSchema.xsd}validateCustomerPaymentProfileResponse>'
anurag22
Member
1 REPLY 1

Working on this over at the issue reported at GitHub.

Aaron
All Star