Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bastiankemmer opened this issue Oct 4, 2022 · 1 comment

Comments

@bastiankemmer
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants