query on MinOccurs=1 in XML Parser
Hi Team,
I have used service wizard to create a SOAP service with "Optional" on an element unselected. The snapshot of generated wsdl is :
When I send the request without the element=ExternalID, it does not throw any SOAP fault as I would have expected as it is mandatory. I also added an attribute as below:
<element name="ExternalID">
<complexType>
<simpleContent>
<extension base="xsd:string">
<attribute name="minOccurs=1" use="required" type="xsd:string"/>
</extension>
</simpleContent>
</complexType>
</element>
Even after that I don't get any SOAP Fault. Can you please let me know how do I make an element mandatory from service wizard (Without using a XSD). Do I need to set any Fault When condition in the service tab ?Currently my fault only has business specific fault when condition.
Thank You,
Prem
***Updated by moderator: Lochan to add Categories***