Hi,
I am developing a web service for a customer. The service has a method, that
returns an array of Forms. Each form has a Name property of Type String.
The customer wants the contract to specify, thath the name is mandatory and
not nullable. To reflect this, they want the xml in the wsdl (the Form part)
to look similar to this:
<xs:complexTy pe name="Form">
<xs:sequence>
...
<xs:element minOccurs="1" maxOccurs="1" name="Name" nillable="false "
type="xs:string " />
...
So, minOccurs should be 1 and nillable should be false (or omitted), to
ensure the value is present and not null.
No matter how I go about this, however, I cannot make the wsdl generate the
desired values. I have tried to do contract-first development using WSCF from
thinktecture, and have the schema dictate the above values for minOccurs and
nillable, but this approach has not remedied the problem.
Is it at all possible to do what I want using .Net and Visual Studio 2005? I
hope my problem is described adequately, otherwise please request more
information. Any help is greatly appreciated.
I am developing a web service for a customer. The service has a method, that
returns an array of Forms. Each form has a Name property of Type String.
The customer wants the contract to specify, thath the name is mandatory and
not nullable. To reflect this, they want the xml in the wsdl (the Form part)
to look similar to this:
<xs:complexTy pe name="Form">
<xs:sequence>
...
<xs:element minOccurs="1" maxOccurs="1" name="Name" nillable="false "
type="xs:string " />
...
So, minOccurs should be 1 and nillable should be false (or omitted), to
ensure the value is present and not null.
No matter how I go about this, however, I cannot make the wsdl generate the
desired values. I have tried to do contract-first development using WSCF from
thinktecture, and have the schema dictate the above values for minOccurs and
nillable, but this approach has not remedied the problem.
Is it at all possible to do what I want using .Net and Visual Studio 2005? I
hope my problem is described adequately, otherwise please request more
information. Any help is greatly appreciated.
Comment