I am invoking java webservice method from javascript. The method has a return type as string but when I invoke it through javascript the response is not just a string but in xml format as below:
<ns:getNameResponse xmlns:ns="helloService">
<ns:return>hello</ns:return>
</ns:getNameResponse>
What i expect is javascript should have received just "Hello" as response. Is something wrong the way java script is written or this is the only way output is received. (might be silly question but I am new to this stuff)
If this is the correct response, is there any way i can retrieve the "hello" string from xml response in javascript?