.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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -