Hi,
I'm trying to run the sample ICalculator project to connect a Cpp client to a WCF service. I get an E_INVALIDARG error when I try to invoke an operation. On getting the error string it shows: The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION.
Here is the operation call and the parameters that are getting passed:
double n1 =14.67, n2=56.57, MultiplyResult;
hr = basicHttpBindingEndpoint_Multiply( serviceProxy, n1, n2, &MultiplyResult, heap, NULL, 0,NULL,error);
I looked at another thread in the forum where the suggestion was to regenerate the proxy classes. I did this by getting the wsdl and xsd using svcutil and then ran wsutil. It all compiled fine, but again on running the client, I get the same E_INVALID_ARG error.
Any thoughts on what might be wrong? I'm running this on a Windows XP 64-bit SP2 machine. I am hosting the WCF Service in a ConsoleApp with the endpoint configured as:
<
endpoint name="basicHttpBindingEndpoint" address="http://localhost:8901/Demo1CalcService"
contract="Microsoft.ServiceModel.Samples.ICalculator"
binding="basicHttpBinding"
bindingConfiguration ="basicHttpConfig">