membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

Unable to create a Sequence with only a SimpleType (e.g. Array<String>) #292

Open bastiankemmer opened 1 year ago

bastiankemmer commented 1 year ago

Hey there,

my WSDL looks like that:

<wsdl:types>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://.../wsdl/example">
      <xs:simpleType name="EmplnoType">
        <xs:restriction base="xs:string">
          <xs:minLength value="0"/>
          <xs:maxLength value="10"/>
          <xs:whiteSpace value="collapse"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:element name="ExampleRequest">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="id" type="tns:EmplnoType"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
...

I have a SimpleType "EmplnoType" which is a String. The request takes a sequence of "EmplnoType". Unfortunatly, the library seems to be unable to create a sequence of SimpleTypes. Is that true?

Is there any workaround I could use to make it work?

FormParams look like that:

[
  "xpath:/ExampleRequest/id[0]" -> 1,
  "xpath:/ExampleRequest/id[1]" -> 2
]
psytester commented 1 year ago

looks like you hit issue #241 which is not resolved yet