.Net 4.0 WCF Service failing when passing parameters -


i trying test wcf service using basichttpbinding endpoint wcf test client. can test methods don't pass parameters no issue, when need pass parameter following error:

failed invoke service. possible causes: service offline or inaccessible; client-side configuration not match proxy; existing proxy invalid. refer stack trace more detail. can try recover starting new proxy, restoring default configuration, or refreshing service.

an error occurred while executing command definition. see inner exception details.

server stack trace: @ system.servicemodel.channels.servicechannel.throwiffaultunderstood(message reply, messagefault fault, string action, messageversion version, faultconverter faultconverter) @ system.servicemodel.channels.servicechannel.handlereply(proxyoperationruntime operation, proxyrpc& rpc) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs) @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation) @ system.servicemodel.channels.servicechannelproxy.invoke(imessage message)

exception rethrown @ [0]: @ system.runtime.remoting.proxies.realproxy.handlereturnmessage(imessage reqmsg, imessage retmsg) @ system.runtime.remoting.proxies.realproxy.privateinvoke(messagedata& msgdata, int32 type) @ ierouter.getclientsearch(string surname, string forename, string street, string postcode) @ erouterclient.getclientsearch(string surname, string forename, string street, string postcode)

due fact can make calls parameterless methods error makes no sense me.

[servicecontract] public interface ierouter {     #region client search      [operationcontract]     selectclientsearch_result[] getclientsearch(         string surname, string forename, string street, string postcode);      #endregion      #region changes      [operationcontract]     changeforblackberry[] getclientchanges(string blackberrypin);      [operationcontract]     bool acceptchange(int changeid, string blackberrypin);      [operationcontract]     bool acknowledgechange(int changeid, string blackberrypin);      [operationcontract]     changeforblackberry[] getmanagerchangesforshifttype(string blackberrypin,          string date, int shifttypeid);      [operationcontract]     clientdetailchangeviewmodel getclientdetailchange(int changeid);      #endregion      #region client details      [operationcontract]     clientdetailviewmodel getclientdetails(int clientid);      [operationcontract]     selectuserlevel_result getuserlevel(string blackberrypin);      #endregion      #region useful contacts      [operationcontract]     selectadmincentretelno_result[] getadmincentretelnos();      [operationcontract]     string getdutyemail();      [operationcontract]     selectdutymanager_result[] getdutymanagertelnos();      [operationcontract]     string getghahandytelno();      [operationcontract]     selecthospitalnos_result[] gethospitaltelnos();      [operationcontract]     string geticttelno();      [operationcontract]     string getmahmobiletelno();      [operationcontract]     selectmymanagerno_result[] getmymanagertelno(string blackberrypin);      [operationcontract]     string getnhsdirecttelno();      [operationcontract]     string getoohemail();      [operationcontract]     string getoohtelno();      [operationcontract]     string getoperationsemail();      [operationcontract]     string getoperationstelno();      [operationcontract]     string getotherhandypersontelno();      [operationcontract]     selectswtelnos_result[] getswtelno();      #endregion      #region gaurdian 24 visit monitoring      [operationcontract]     string startvisitmonitoring(int clientid, int activityduration,          string activitytext, string blackberrypin);      [operationcontract]     string stopvisitmonitoring(int clientid, string activityid,          string blackberrypin);      #endregion } 

it serialization error - check if have [datacontract] or [serializable] @ return class selectclientsearch_result.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -