Service Virtualization

WCF service virtualization

  • 1.  WCF service virtualization

    Posted Jan 30, 2015 05:14 AM

    Hi All,

     

    I have virtualized one WCF service with below functionality:

    If incoming request will not find a match in VSI, it will go to Live Invocation step(HTTPS). This functionlaity is working fine in LISA while testing. However, the same is not working in WCF test client and i am getting below error:

     

    The remote server returned an unexpected response: (400) Bad Request.

    Server stack trace:
       at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at IReferrals.GetQueueReferralCounts(String Queue_Ids)
       at ReferralsClient.GetQueueReferralCounts(String Queue_Ids)

    Inner Exception:
    The remote server returned an error: (400) Bad Request.
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

     

    Someone please help to understand what is going wrong & how can i remove this error.