The server's WSDL should specify if a parameter can be null
or not. One way to do that is the minOccurs and maxOccurs properties of an
element.
<element maxOccurs="1" minOccurs="1"
name="TransactionID" type="xsd:int" />
This just ensures that the element is specified in the
request but does not care if it is null. To do that use the nillable
property.
<element nillable="false" maxOccurs="1" minOccurs="1"
name="TransactionID" type="xsd:int" />
If you
just want to do this checking on the client side, then that has to be specified
in the client side code as you would normally do in Java.
From: Jairam, Roopnaraine [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 10:05 AM To: [EMAIL PROTECTED] Subject: RE: data validation Does anyone know how to do this???
From: Jairam,
Roopnaraine
Hi:
Is there a way for axis to validate data before it is sent to the web service. Basically the data the client sends should not be null. When it comes to my web service all the required parameters should not be null. E.g. if the client is supposed to send a struct that identifies a client e.g. first name, last name, address1, address2, city,state,zip1,zip2. All the members of the struct can’t be null except for address2 & zip2. Is there a way to do this?
Thanks in advance.
Vince. |
- data validation Jairam, Roopnaraine
- RE: data validation Jairam, Roopnaraine
- RE: data validation Jairam, Roopnaraine
- Re: data validation Lyndon Tiu
- RE: data validation Greg Michalopoulos
- RE: data validation Sheptunov, Bogdan
- RE: data validation Jairam, Roopnaraine
- RE: data validation tony . q . weddle
- RE: data validation THOMAS, JAI [AG-Contractor/1000]
- RE: data validation Sheptunov, Bogdan
- RE: data validation Jairam, Roopnaraine
- RE: data validation tony . q . weddle
- RE: data validation Jairam, Roopnaraine
- RE: data validation Jairam, Roopnaraine
- RE: data validation Jairam, Roopnaraine