> WCF proxy should be generating your bools with Nullable<bool> or bool?.
> Would be interesting to build a service accepting a Nullable<bool> as input
[quoted text clipped - 60 lines]
>
> - Tekst uit oorspronkelijk bericht weergeven -
Seems nillable is missing from System.Web.Services (ASMX, .NET 1.x). See
here:
http://kjellsj.blogspot.com/2005/04/optional-numeric-fields-in-infopath.html
Have you tried to generate the proxy via "Add Web Reference"? This will make
use of .NET 1.x instead of .NET 2.0 (WCF).
Tiago Halm
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
[quoted text clipped - 66 lines]
>
> - Tekst uit oorspronkelijk bericht weergeven -
My colleague tried that. A service that accepts a bool? (nullable) as
input generates a WSDL node with minOccurs="1", maxOccurs="1" and
nillable="true". So that's different from the WSDL we got from our
service provider, which just provided a boolean with minOccurs="0"
maxOccurs="1" and nillable not set.
Nu much of a surprise when the test service accepted null input for
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
Java (JaxWS), I guess I should be asking a JaxWS person why the WSDL
turns out like this.
Thanks so far!
Martijn
Martijn van Exel
Software Engineer
-------------------------------------
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.exel@geodan.nl
Website: www.geodan.nl
KvK-nummer: 33 247475
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
John Saunders [MVP] - 25 Mar 2008 03:42 GMT
> Seems nillable is missing from System.Web.Services (ASMX, .NET 1.x). See
> here:
> http://kjellsj.blogspot.com/2005/04/optional-numeric-fields-in-infopath.html
>
> Have you tried to generate the proxy via "Add Web Reference"? This will
> make use of .NET 1.x instead of .NET 2.0 (WCF).
Add Web Reference will use ASMX, but for whichever version of .NET you like.
In VS2003, .NET 1.1. VS2005, .NET 2.0. In VS2008, .NET 2.0 through 3.5.

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Tiago Halm - 25 Mar 2008 19:15 GMT
Yes, "Add Web Reference" will make use of System.Web.Services object model.
This object model is present in both CLR versions available (1.1 and 2.0).
Using VS2003 will make use of CLR 1.1 (and .NET 1.1). Using VS2005 (and
above, like VS2008) will make use of CLR 2.0 and the respective .NET version
(2.0, 3.0, 3.5).
However, at build time, you're free to use whatever CLR you choose, 1.1 or
2.0.
Tiago Halm
>> Seems nillable is missing from System.Web.Services (ASMX, .NET 1.x). See
>> here:
[quoted text clipped - 6 lines]
> like. In VS2003, .NET 1.1. VS2005, .NET 2.0. In VS2008, .NET 2.0 through
> 3.5.