XML in messages getting converted issue
Posted: 08 May 2009, 05:40
Hi All,
I'm having an issue when I receive XML as a message on a .NET client from an iPhone client.
Message sent from iPhone
<node/>
Received on C# .NET client app:
Debug Message:
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='1'><user id='7' /><txt><![CDATA[<node/>]]></txt></body></msg>, (len: 105)
Notice that the XML string has been converted within the CDATA block.
The message actually causes the C# app to disconnect:
Debug Message:
Disconnect due to: Index and length must refer to a location within the string.
Parameter name: length
Connection Lost
I can send the same XML message to/from a .NET client without issue.
We have a guy working with the Java client API and he is having the same issue sending from a Java client to .NET.
Is there a setting I'm missing, or is this a problem?
Thanks,
Craig
I'm having an issue when I receive XML as a message on a .NET client from an iPhone client.
Message sent from iPhone
<node/>
Received on C# .NET client app:
Debug Message:
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='1'><user id='7' /><txt><![CDATA[<node/>]]></txt></body></msg>, (len: 105)
Notice that the XML string has been converted within the CDATA block.
The message actually causes the C# app to disconnect:
Debug Message:
Disconnect due to: Index and length must refer to a location within the string.
Parameter name: length
Connection Lost
I can send the same XML message to/from a .NET client without issue.
We have a guy working with the Java client API and he is having the same issue sending from a Java client to .NET.
Is there a setting I'm missing, or is this a problem?
Thanks,
Craig