I am sorry if this is a question that has peoples eyes rolling.
The scenario I have is our team are wrapping a service provided by one of the areas in our organisation. This service has restrictions on input in terms of minimum and maximum entries for certain list values, in that they define in the wsdl minOccurs and maxOccurs entries.
We have no issue consuming this wsdl and providing a flow service that will take the input process it and call the service being consumed. This is going very well.
The issue we have is when using our flow service as the basis for the the creation of our provider wsd that we can only define minOccurs = 0 or 1 and maxOccurs= unlimited. How can we have it automatically define entries in the defined wsdl created in the wsd with say a minOccurs=10 maxOccurs=20 for instance?
By all means if this is easy please point me where to look at.
βββββββββββββββββββ
What we are striving to achieve achieve:
β¦
<wsdl:types>
<xsd:schema targetNamespace="http://Localhost/testschema:new_wsd" xmlns:tns="http://Localhost/testschema:new_wsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="in" type="tns:in"/>
<xsd:element name="out" type="tns:out"/>
<xsd:complexType name="in">
<xsd:sequence>
<xsd:element name="docType_new_flowservice" nillable="true" type="tns:docType_new_flowservice"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="docType_new_flowservice">
<xsd:sequence>
<xsd:element name="filterRequest" type="tns:filterRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="filterRequest">
<xsd:sequence>
<xsd:element name="correlationId" type="xsd:string"/>
<xsd:element name="entries" type="tns:entries"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entries">
<xsd:sequence>
<xsd:element maxOccurs=β20β minOccurs=β10β name="entry" type="tns:entry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entry">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="out">
<xsd:sequence>
<xsd:element name="docType_new_flowservice" nillable="true" type="tns:docType_new_flowservice"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
β¦
βββββββββββββββββββ
What we are presently getting:
β¦
<wsdl:types>
<xsd:schema targetNamespace="http://Localhost/testschema:new_wsd" xmlns:tns="http://Localhost/testschema:new_wsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="in" type="tns:in"/>
<xsd:element name="out" type="tns:out"/>
<xsd:complexType name="in">
<xsd:sequence>
<xsd:element name="docType_new_flowservice" nillable="true" type="tns:docType_new_flowservice"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="docType_new_flowservice">
<xsd:sequence>
<xsd:element name="filterRequest" type="tns:filterRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="filterRequest">
<xsd:sequence>
<xsd:element name="correlationId" type="xsd:string"/>
<xsd:element name="entries" type="tns:entries"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entries">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs=β1β name="entry" type="tns:entry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entry">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="out">
<xsd:sequence>
<xsd:element name="docType_new_flowservice" nillable="true" type="tns:docType_new_flowservice"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
β¦