Question

4
Replies
103
Views
Close popover
Prem Mishra (mishp4)
PEGA
Sr. System Architect
Pegasystems Inc.
AU
mishp4 Member since 2015 5 posts
PEGA
Posted: February 14, 2016
Last activity: April 11, 2017
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.