Note that there are some explanatory texts on larger screens.

plurals
  1. PO.Net 4.0 WCF Service failing when passing parameters
    primarykey
    data
    text
    <p>I am trying to test a WCF service using the basichttpbinding endpoint from the WCF test client. I can test methods that I don't pass parameters to with no issue, but when I need to pass a parameter I get the following error:</p> <blockquote> <p>Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.</p> <p>An error occurred while executing the command definition. See the inner exception for details.</p> <p>Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p> <p>Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type) at IErouter.GetClientSearch(String surname, String forename, String street, String postcode) at ErouterClient.GetClientSearch(String surname, String forename, String street, String postcode)</p> </blockquote> <p>Due to the fact I can make calls to parameterless methods this error makes no sense to me.</p> <pre><code>[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 } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload