Complex model with namespaces
Hi! I have a issue on complex model deserialization, but when I remove namespaces it works! But originally I can't remove them because this XML is incoming
Here is the XML I'm using:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body>
<ns0:SomeRequest xmlns:ns0="http://www.SomeRequest.lv/SomeRequestService" xmlns:ns1="http://SomeRequest.lv/commonheader">
<ns0:Data>
<ns0:AACreateSomeRequest xmlns:reqdt="http://aaa.lv" xmlns:memdt="http://bbbb.lv">
<memdt:Meow>Dirsa</memdt::Meow>
</ns0:AACreateSomeRequest>
</ns0:Data>
</ns0:SomeRequest>
</s:Body>
</s:Envelope>
And these are the models:
[DataContract]
public class Data
{
[DataMember]
public AACreateSomeRequest AACreateSomeRequest { get; set; }
}
[DataContract]
public class AACreateSomeRequest
{
[DataMember]
public string Meow { get; set; }
}
Maybe I'm doing it wrong or maybe not bet for me this model complexity not working. :/
In UseSoapEndpoint I have SoapSerializer.XmlSerializer