I am trying to consume a web service specified using WSDL by creating a WCF proxy using svcutil.exe, but the WSDL specifies that some of the operations have parameters that are optional (minOccurs="0"), for example:
<xs:element minOccurs="0" maxOccurs="1" name="meetingId" type="xs:int" />
Unfortunately, the generated proxy does not allow me to not specify the values (the parameters are not nullable), and there are no "specified" fields as part of the call to instruct the proxy that no value should be sent.
Is there any way to use svcutil to generate a proxy that would allow me to do this?
(On a side note, I noticed through my research that others were able to generate these extra "specified" fields correctly using the "Add Service Reference" feature, but for whatever reason Visual Studio doesn't appear to want to generate the proxy after I add the reference (nothing happen afterwards))
Command Used: svcutil http://sas-int.elluminate.com/site/external/adapter/default/v1/webservice.wsdl /internal /n:*,Elluminate.WebService.WebServiceProxy /o:WebServiceProxy.cs /config:App.config /nologo