A
ads
I'm writing a webservice where all of the data elements should have a
minOccurs = 0. I'm using VS2005.
This is fine for most of my elements, but all of my datetime elements
automatically receive a minOccurs = 1 in the auto generated WSDL
file.
For example , if these were some fields in my Web Service code:
public string category;
public string condition;
public datetime dateOfPurchase;
My WSDL file turns out like this:
<s:element minOccurs="0" maxOccurs="1" name="category"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="condition"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="dateOfPurchase"
type="s:dateTime" />
Any thoughts? I'm working on another project where I've been given a
WSDL file generated from VS2008 - and this WSDL does have dateTimes
with minOccurs = 0. Is this a VS2005 limitation? Or am I doing
something wrong?
Any thoughts?
Thanks so much!
ami
minOccurs = 0. I'm using VS2005.
This is fine for most of my elements, but all of my datetime elements
automatically receive a minOccurs = 1 in the auto generated WSDL
file.
For example , if these were some fields in my Web Service code:
public string category;
public string condition;
public datetime dateOfPurchase;
My WSDL file turns out like this:
<s:element minOccurs="0" maxOccurs="1" name="category"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="condition"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="dateOfPurchase"
type="s:dateTime" />
Any thoughts? I'm working on another project where I've been given a
WSDL file generated from VS2008 - and this WSDL does have dateTimes
with minOccurs = 0. Is this a VS2005 limitation? Or am I doing
something wrong?
Any thoughts?
Thanks so much!
ami