Help for required fields

A

Andrea V.F.

I'm a newbie in Infopath.

I've created a small webservice with Visual Basic.Net for comunicate
with an Access DB.

In the VB Code there is a Type called "Census" like this:


Public Class Census
Public ID as Int32
Public DateBirth as Date
Public Name as String
End Class



If I look to the WSDL it seems like this:


<s:complexType name="Census">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="ID" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="DateBirth"
type="s:dateTime"/>
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string"/>
</s:sequence>
</s:complexType>



I would like that minOccurs for ID and DateBirth is 0 not 1 so that in
Infopath I'm not obliged to insert a value for it. Alternatively I need
a way to obviate this problem

How can I do this??

Thanks for replying and excuse me for my bad english.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top