Hi, I am using Axis for some developements. I provide through Axis a simple web service returning the local time for a given city (ex Europe/Paris) and a Locale (ex fr). I retrieve the result from a java piece of code. During some testing I realized that I get two text nodes as part of the reponse. Here is an example of the response:
<ns1:getTimeResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="Time" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <getTimeReturn xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">mardi, 19 novembre 2002 09:12:43 Heure d'Europe centrale</getTimeReturn> </ns1:getTimeResponse> When getting the children nodes of the getTimeResponse element (through the getChildNodes() method), I actually get three nodes. The first one is a text node containing some whitespaces and a CR. The second node is the getTimeReturn element. And the third node is also a text node containing, as the first one, some withespaces and a CR. It seems to me that these two text nodes are some kind of pretty pretting stuff. Is that a normal behaviour of having such text nodes in the response ? If not is it a bug or some kind of misconfiguartion on my side. Regards. Jerome ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com
