Question

4
Replies
102
Views
mishp4 Member since 2015 5 posts
PEGA
Posted: 4 years ago
Last activity: 4 years 8 months ago
Closed

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 :

snapshot_MaxOccurs.png

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***

Data Integration
Moderation Team has archived post
Share this page LinkedIn