I am using WCF to create a SOAP Webservice, and now I am facing the following problem:
- I have an OperationContract defined that looks like this:
[OperationContract] void InsertSomeData(string version, int someId);
- When testing the service using soapUI, I realized that if I remove someId tags in the request, I get a value of 0 in my service
- Is this standard behavior? In fact, I would suggest that the service threw some kind of exception, since the parameter cannot be null.
- Can I distinguish my service between 0 as the real value that was transmitted and just the missing tags, or do I need to set all my parameters to zero in advance.
Thank you for your help.
source share