From: <D.D...@ak...> - 2011-04-13 09:50:27
|
<font face="Sans Serif predefinito,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi all,<br><br>I think I spotted a little bug you might be interested in. In my project, I send SOAP requests to a server that I compose in a stringbuffer, like the following<br><br>query.append("<TripInformationRequest xmlns=\<a class="moz-txt-link-rfc2396E" href="http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest%5C">"http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\"</a>><recordLocator>");<br><br>When sending the request however, I was receiving a Routing Error from the server that I couldn't understand.<br>After some packet sniffing I found out that, in the Objectve-C version of the project, the line was translated as<br><br> _r3.o = @"<TripInformationRequest xmlns=\\042http://xml.amadeus.com/ori/bpel/TripInformation/schema/TripInformationRequest\\042><recordLocator>";<br><br>The \" pattern in the string was converted to \\042 which caused the problem.<br>I solved the problem by modifying the xslt sheet as follows (at line 2944)<br><br><xsl:value-of select="replace(replace(replace(replace(replace(replace(replace(replace(@value,'\\','\\\\'),<br> '\\\\011','\\t'),'\\\\012','\\n'),'\\\\015','\\r'),'\\\\014','\\f'),'\\\\010','\\b'),<br> '&quot;','\\&quot;'), '\\\\042','\\&quot;')"/><br><br>Practically I just added a new replace pattern at the end of all the others. Do you think it might be a good solution?<br><br>Thanks,<br><br>Domenico<br></div></font> |