On 19 mrt, 00:48, "Tiago Halm" <th...@nospam.hotmail.com> wrote:
> WCF proxy should be generating your bools with Nullable<bool> or bool?.
> Would be interesting to build a service accepting a Nullable<bool> as inpu=
t
> and compare the WSDL generated with this one.
>
> Tiago Halm
>
> "mvexel" <mve...@gmail.com> wrote in message
>
> news:f78c5c2a-2dbe-495d-98c8-e2ad64680275@s37g2000prg.googlegroups.com...
>
>
>
> > Hi all,
>
> > Consider the following snippet of WSDL:
>
> > =A0 =A0 =A0<xsd:element name=3D"findWellsInputMsg">
> > =A0 =A0 =A0 =A0<xsd:complexType>
> > =A0 =A0 =A0 =A0 =A0<xsd:sequence>
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element name=3D"language" type=3D"dds:Langua=
geType" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" name=3D"longitude"
> > type=3D"dds:RangeType" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" name=3D"latitude"
> > type=3D"dds:RangeType" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" name=3D"depth"
> > type=3D"dds:RangeType" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" maxOccurs=3D"1"
> > name=3D"hasWaterLevels" type=3D"xsd:boolean" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" maxOccurs=3D"1"
> > name=3D"hasWellTests" type=3D"xsd:boolean" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" maxOccurs=3D"1" name=
=3D"hasLogs"
> > type=3D"xsd:boolean" />
> > =A0 =A0 =A0 =A0 =A0 =A0<xsd:element minOccurs=3D"0" maxOccurs=3D"1"
> > name=3D"hasAnalysis" type=3D"xsd:boolean" />
> > =A0 =A0 =A0 =A0 =A0</xsd:sequence>
> > =A0 =A0 =A0 =A0</xsd:complexType>
> > =A0 =A0 =A0</xsd:element>
>
> > As you see, all parameters are optional except "language".
>
> > I import the WSDL in my .NET 3 project through 'Add Service Reference.
> > I opt to include async operations. Otherwise I leave all options at
> > their defaults.
>
> > Now when I create a request for this operation, it will accept null
> > for the complex types 'longitude', 'latitude' and 'depth'. These will
> > then be omitted in the SOAP request generated. But because bools are
> > not nullable, I can't find a way to leave those out of the request. Is
> > this a bug in wsdl.exe or am I not seeing something here?
>
> > Thanks for your insights,
>
> > Martijn van Exel
> > Software Engineer
> >
http://oegeo.wordpress.com/ > > -------------------------------------
> > Geodan S&R
> > President Kennedylaan 1
> > 1079 MB Amsterdam (NL)
> > -------------------------------------
> > Tel: +31 (0)20 - 5711 318
> > Fax: +31 (0)20 - 5711 333
> > -------------------------------------
> > E-mail: martijn.van.e...@geodan.nl
> > Website:
www.geodan.nl > > KvK-nummer: 33 247475
> > Disclaimer:
www.geodan.nl/disclaimer > > -------------------------------------- Tekst uit oorspronkelijk bericht =
niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
My colleague tried that. A service that accepts a bool? (nullable) as
nillable=3D"true". So that's different from the WSDL we got from our
the boolean just fine. Problem is, I can't control the WSDL I get as
it comes from an external provider. They implement their services in