Hi ,
I am trying to consume a web service. This service has some input parameters. It is working fine when the input parameter has a corresponding value in the backend and I am getting correct response. But when I pass some value as input parameter which does not have a corresponding value in the backend then Web service response is exception message .the message is something like " For the given value supplied , there is no matching record". I tested this in an external tool.
But when I try this in silverlight, I get the exception as " Message "The remote server returned an unexpected response: (404) Not Found." string". In the result object in my webservice invocation complete method it says:-
"- Result 'e.Result' threw an exception of type System.Reflection.TargetInvocationException' a2xCall.a2xProxies.OpportunityReadConfirmationMessage0001 {System.Reflection.TargetInvocationException}
"
The stack trace is as follows:
StackTrace " at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)\r\n at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)\r\n at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)\r\n at a2xCall.a2xProxies.ManageOpportunityIn02Client.ManageOpportunityIn02ClientChannel.EndRead(IAsyncResult result)\r\n at a2xCall.a2xProxies.ManageOpportunityIn02Client.a2xCall.a2xProxies.ManageOpportunityIn02.EndRead(IAsyncResult result)\r\n at a2xCall.a2xProxies.ManageOpportunityIn02Client.EndRead(IAsyncResult result)\r\n at a2xCall.a2xProxies.ManageOpportunityIn02Client.OnEndRead(IAsyncResult result)\r\n at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)" string
Can anyone help me how can I get the actual exception message instead of "404 not found".
Regards,
rishu