Mimic.js handle fault response

Posted by nikolas on Stack Overflow See other posts from Stack Overflow or by nikolas
Published on 2012-02-27T05:06:03Z Indexed on 2012/06/06 16:40 UTC
Read the original article Hit count: 422

Filed under:
|

i use mimic.js regarding a project that i m developing.. the issue that i face, is if there is a fault response from the webservice, mimic, doesn't handle it, and the browser remains "awaiting" for a response, that has actually been back, but hasn't been handled by mimic.. to be more specific, one typical fault response is the following..

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name><value><int>104</int></value>
</member>
<member>
<name>faultString</name><value><string>Invalid Input Parameters</string></value>
</member>
</struct></value></fault></methodResponse>

and chrome console get me the error

mimic.js:11 Uncaught TypeError: Cannot read property 'childNodes' of null

any suggestions on how to handle "fault" responses? mimic.js hasn't been altered at all.. also tried to bypass the fact that mimic can't handle the fault, by trying to use the isFault flag, in the if statement, with no success either.. isFault is supposed to get a boolean value, i guess true/false?

© Stack Overflow or respective owner

Related posts about response

Related posts about fault