logo       

Should nuSoap server produce a fault if a required element is not provided : msg#00066

php.nusoap.general

Subject: Should nuSoap server produce a fault if a required element is not provided in the SOAP message?

In a WSDL file there is the following type definition (part of a bigger type):

<xsd:complexType name="bookingSearchParamsProviderIdType">
<xsd:all>
<xsd:element name="values" type="typens:providerIdArray"/>
<xsd:element name="mode" type="typens:bookingSearchModeType"/>
</xsd:all>
</xsd:complexType>

A client is producing a SOAP message that only contains the 'values' element
and does not contain the 'mode' element, i.e. the message does not conform
to the WSDL specification.

Should nuSOAP produce a fault because of the missing element 'mode' or is it
up to me to code the validation in the PHP code for the webservice?

--
Mark Scott
CSUK Solutions Technical Team
Tel: +44 (0)845 6444 185
Email: mark.scott@xxxxxxxxxxxxxxxxxx


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise