D
davidliuh
Hi,
I have a web service which inplements a WSDL. In the WSDL, there're two
lines like:
<s:element minOccurs="1" maxOccurs="1" name="CreateDateTime"
type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="OriginatorID" type="s:int"
/>
When I tested, I didn't have CreateDateTime and OriginatorID element in
the test message. What I got in the web service is: CreateDateTime:
01/01/0001 and OriginatorID: 0. What I expected is I should get a soap
exception because CreateDateTime and OriginatorID are required
(minOccurs = 1). Why I got two strange values? Does WSDL validate the
incoming messages?
I'll appreciate your response.
David
I have a web service which inplements a WSDL. In the WSDL, there're two
lines like:
<s:element minOccurs="1" maxOccurs="1" name="CreateDateTime"
type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="OriginatorID" type="s:int"
/>
When I tested, I didn't have CreateDateTime and OriginatorID element in
the test message. What I got in the web service is: CreateDateTime:
01/01/0001 and OriginatorID: 0. What I expected is I should get a soap
exception because CreateDateTime and OriginatorID are required
(minOccurs = 1). Why I got two strange values? Does WSDL validate the
incoming messages?
I'll appreciate your response.
David