List를 wcf로 보내려고합니다. json으로 보내고 싶습니다. 방법이 있습니까?wcf에 <xmldocument> 목록을 보내시겠습니까?
직렬화하려고 할 때 빈 문자열이 생기는 이유는 무엇입니까?
public string ImportXml(List<XmlDocument> docs,string token)
{
Account user = GetCurrentUser(token);
string url = string.Format("{0}ImportXml/{1}", ServiceUrl, user.Unumber);
string contentType = "text/json";
x.Serialize(Console.Out, docs);
string jsonReq = _serializer.Serialize(docs);
bool response = false;
HttpRequestHandler handler = new HttpRequestHandler();
string result = handler.HttpPostWithToken(url, jsonReq, contentType, token);
return result ;
}
문서 목록에 내용이 있습니까? –