WSDL data contract different from WSSF data contract

Topics: General Discussion Forum, July and December Releases Forum, Service Factory Modeling Edition Forum
Mar 19, 2008 at 3:07 PM

I've been developing web services using the web services software factory. Especially the diagrams offer a lot of added value, more particular for business people.

In my solution I have several data types defined in the data contract and I control very strictly which members of a certain data type MUST be present and which MAY be present. For example:

Data Type 1: holds two members, a string called "ExternalId" and an int called "TypeId" both of them are flagged as "nullable" is "false" and "Is required" is "true"

After compiling and publishing the service however the xsd that represents the data contract generated by the service (myservice.svc?xsd=xsd2) shows:
<xs:element name="TypeId" type="xs:int" />
<xs:element name="ExternalId" nillable="true" type="xs:string" />

All elements of type "xs:string" are nillable, Even when I explicitly declare it otherwise.

Is this a bug or a feature and what can I do about it?

Kind regards,
Mar 19, 2008 at 3:23 PM
I also noticed that boolean types cannot be nillable in the generated xsd, eventough I defined them nillable in the data contract