.net - Calling ServiceStack service from WCF client -
i have old soap service developed using wcf , number of .net clients using wcf call service.
i have created new service using servicestack framework implements same functionality.
possible call servicestack wcf clients without code or config changes clients?
i free make needed changes servicestack service.
edit:
small step forward.
after adding correct namespace assemblyinfo.cs , appending "/soap11" url correct service method invoked parameter data not transferred.
the wcf proxy method called in client takes 1 parameter "e" class string , int properties.
soap body sent on wire begins with:
<mymethod xmlns="http://mynamespace"> <e> <propertya xmlns="http://schemas.datacontract.org/2004/07/myproject.service.entities">somestring</propertya> <propertyb xmlns="http://schemas.datacontract.org/2004/07/myproject.service.entities">123</propertyb> the servicestack dto looks like:
[datacontract] public class mymethod { [datamember] public eventdata e { get; set; } } [datacontract] public class eventdata { [datamember] public string properya { get; set; } [datamember] public int properyb { get; set; } ... } how add correct property namespace definitions in service?
should need to?
adding correct namespace datacontract attribute in parameter class solved problem.
[datacontract(namespace = "http://schemas.datacontract.org/2004/07/myproject.service.entities")] public class eventdata { [datamember] public string properya { get; set; } [datamember] public int properyb { get; set; } ... }
Comments
Post a Comment