Click here to Skip to main content
15,997,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have response in
XML
<?xml version="1.0" encoding="utf-8" ?>
  <string xmlns="http://tempuri.org/">[{"sucess":"1","key":"0ce2a19b-cf8e-4b29-89a1-77a336479d7c","password":"ch"}]</string>



I want only in json format not xml and string.
Posted
Updated 2-Jan-12 21:21pm
v2

1 solution

What is the question ???
If the service responds you like this then its your responsibility to strip it down and to get the required data. As it seems the service returns JSON data in SOAP format (which is quite abnormal). So you need to parse the XML to get the JSON data or alternatively if you can shange the service, retun the JSON data with a different REST endpoint.
 
Share this answer
 

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