-
Notifications
You must be signed in to change notification settings - Fork 68
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
Sequences are not generating array types #32
Comments
Hi @rostamiani , I tried it with this kind of WSDL <s:complexType name="ProductSearchParameters">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" default="-2147483648" name="Id" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" default="-2147483648" name="CategoryId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" default="" name="No" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" default="" name="EAN1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" default="" name="Name" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" default="-79228162514264337593543950335" name="Price" type="s:decimal" />
<s:element minOccurs="0" maxOccurs="1" default="0001-01-01T00:00:00" name="DateChanged" type="s:dateTime" />
<s:element minOccurs="0" maxOccurs="1" name="ProductIds" type="tns:ArrayOfInt" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfInt">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfString">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
</s:sequence>
</s:complexType> and I'm getting /** GetProducts */
export interface GetProducts {
/** searchParams */
searchParams?: SearchParams;
/** returnProperties */
returnProperties?: ReturnProperties;
}
export interface ReturnProperties {
/** s:string */
string?: Array<string>;
} Compared to wsimport I'm getting correct output @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"searchParams",
"returnProperties"
})
@XmlRootElement(name = "GetProducts")
public class GetProducts {
protected ProductSearchParameters searchParams;
protected ArrayOfString returnProperties;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfString", propOrder = {
"string"
})
public class ArrayOfString {
@XmlElement(nillable = true)
protected List<String> string;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know WSDL but there is an ArrayOfstring fields that generates
string
instead ofstring[]
. Isn't it wrong?And this is the generated field:
Version: 1.3.1
The text was updated successfully, but these errors were encountered: