Click here to Skip to main content
15,891,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My WCF service returning xml data e.g.
<stundent><name>abc</name></student>

But while consuming in android they are getting same data as
like &lt;student&gt;&lt;name&gt;

In my WCF service return paramter is normal C# string.
At my WCF service end in log file we are writing the response before sending to client app end and its writing proper xml string but while client end its converting as like above.

Client is unable to convert the code as their end their middle ware is converting the same.
my service is code is below :
C#
[DataContract]
  public class RespServiceData
  {
      [DataMember]
      public string RespData { get; set; }
  }


Is their anything which i can change at service end so that problem will solve.
Posted
Updated 15-Oct-15 18:56pm
v6

1 solution

 
Share this answer
 
Comments
vishal_h 16-Oct-15 0:42am    
i dont have client code and client is having middleware which converting the result so
they are asking to change the code at server side is it possible ?
Krunal Rohit 16-Oct-15 0:59am    
If you're service is returning proper XML, then you should work the other side.

-KR
vishal_h 16-Oct-15 1:29am    
hi actually my service is getting xml data string from other service and i am returning that as it is.the problem is my return type is string so middle ware is converting the xml tag to < >

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900