0 Replies Latest reply on Nov 25, 2007 12:06 PM by rsa4224

    Java webservice and Flex xml < as <

    rsa4224
      Hello I have created a simple Java Web Service that Flex can commnicate with via WSDL.

      For some reason however Flex is interperting generated XML as follows:

      Do you know how I can make sure that Flex does not change the < to &lt

      Here is the soap message Flex gets:
      <ns:getTestDataResponse xmlns:ns=" http://ws.apache.org/axis2" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/">
      <ns:return>&lt;ns:results&gt;&lt;ns:result&gt;&lt;ns:name&gt;Fred&lt;/ns:name&gt;&lt;ns:l name&gt;Smith&lt;/ns:lname&gt;&lt;/ns:result&gt;&lt;ns:result&gt;&lt;ns:name&gt;Mary&lt;/n s:name&gt;&lt;ns:lname&gt;Lewis&lt;/ns:lname&gt;&lt;/ns:result&gt;&lt;/ns:results&gt;</ns: return>
      </ns:getTestDataResponse>
      <ns:getTestDataResponse xmlns:ns=" http://ws.apache.org/axis2" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/">
      <ns:return>&lt;ns:results&gt;&lt;ns:result&gt;&lt;ns:name&gt;Fred&lt;/ns:name&gt;&lt;ns:l name&gt;Smith&lt;/ns:lname&gt;&lt;/ns:result&gt;&lt;ns:result&gt;&lt;ns:name&gt;Mary&lt;/n s:name&gt;&lt;ns:lname&gt;Lewis&lt;/ns:lname&gt;&lt;/ns:result&gt;&lt;/ns:results&gt;</ns: return>
      </ns:getTestDataResponse>

      Here is the source Java function that the WSDL calls:

      public String getTestData(int loader)
      {
      String str = "<ns:results><ns:result><ns:name>Fred</ns:name><ns:lname>Smith</ns:lname></ns:result><ns: result><ns:name>Mary</ns:name><ns:lname>Lewis</ns:lname></ns:result></ns:results>";
      return str;
      }