I have a WCF on iis. I have a method called by post and I have to send to it an xml. the methods needs a List
With this xml:
xml version="1.0" encoding="utf-8" ?>
xmlns="http://tempuri.org/">
xmlns="http://schemas.datacontract.org/2004/07/MultipayOnline"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
0018
20685
A.T.E.R. Azienda Territoriale
PIAZZA POZZA
Verona
37123
VR
00223640236
223640236
937,02
FALSE
3303903
oklkokokokok
the wcf read some attributes of the List, and other.. are nul!!!
I my WrapClienti I have a lof of attributes. Two of them are:
private string p_CAP { get; set; }
public string CAP
{
get
{
if (model == null)
return p_CAP.ToSafeString();
else
return this.model.CAP.ToSafeString();
}
set { p_CAP = value; }
}
private string p_PROV { get; set; }
public string PROV
{
get
{
if (model == null)
return p_PROV.ToSafeString();
else
return this.model.PROV.ToSafeString();
}
set { p_PROV = value; }
}the problem is, with the xml above and with two breakpoint on the two set methods, only the set of PROV is called and, the one of CAP, not!!! Why? Now I'm really getting crazy... why this behavior??
Replies
Know the answer? Post it — somebody with the same question will find it here.