Developer Area

Show
Ignore:
Timestamp:
07/28/09 16:41:03 (5 years ago)
Author:
jonmaycock
Message:

Added fix for handling lower case Canonical XML encoding of carriage return/ new line. This handles a defect in the acceptance server.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/blackberry/trunk/blackberry/src/org/telnic/blackberry/util/xml/TelnicWebServicesReference.java

    r339 r485  
    381381        } 
    382382        while (returnMessage.indexOf( "
" ) >= 0) 
    383         { 
     383        {             
     384            //Special case - check for canonical xml form for new line, and replace. Added v1.2 
    384385            int i = returnMessage.indexOf( "
" ); 
    385386            returnMessage = returnMessage.substring( 0, i ) + "\r\n" 
    386387                + returnMessage.substring( i + "
".length(), returnMessage.length() ); 
    387         }        
     388        } 
     389        while (returnMessage.indexOf( "
" ) >= 0) 
     390        { 
     391            //Special case - check for lower case canonical xml form for new line, and replace. 
     392            //This handles a bug found on a newer version of the server - Added v1.4 
     393            int i = returnMessage.indexOf( "
" ); 
     394            returnMessage = returnMessage.substring( 0, i ) + "\r\n" 
     395                + returnMessage.substring( i + "
".length(), returnMessage.length() ); 
     396        } 
    388397 
    389398        return returnMessage; 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us