I am trying to decode this xml message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AuthenticateUserResponse xmlns="http://oneclickforapp.dpag.de/V3"><userToken>USERTOKEN</userToken><walletBalance>100000</walletBalance><showTermsAndConditions>true</showTermsAndConditions></AuthenticateUserResponse></soap:Body></soap:Envelope>
I am trying to decode this xml message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AuthenticateUserResponse xmlns="http://oneclickforapp.dpag.de/V3"><userToken>USERTOKEN</userToken><walletBalance>100000</walletBalance><showTermsAndConditions>true</showTermsAndConditions></AuthenticateUserResponse></soap:Body></soap:Envelope>
This is my code:
But it results in this error:
Err
value: Custom { field: "missing fieldsoap:Body
" }'If I change soap:Body to soapBody. (int the code and xml file). Then it works without a problem. The problem seems to be the colon (:).