Comments (1)
Hi @rostamiani ,
can you try it on 1.4.0
? Or could you please share wsdl with me?
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;
}
from wsdl-tsclient.
Related Issues (20)
- [Question] Using the client in Angular
- wsdl_options not available in the generated interface methods HOT 2
- `wsdl_headers` not being passed to request HOT 1
- Filename globbing is not working
- Missing support for xs:group type?
- node-soap parsed primitive types do not match HOT 2
- Can't generate a <fieldName xsi:nil="true" /> field in request payload
- Inserting syntax kind of ExportDeclaration, but ExpressionStatement was inserted. HOT 1
- Update to soap ^1.0.0
- Way to do pre action before sending soap request HOT 1
- Skip folder name on destination dir
- error TS2440: Import declaration conflicts with local declaration of 'SoapClient'. HOT 2
- Use type names instead of attribute names for types
- Need help to get started HOT 1
- Emit definitions of unused interfaces
- wsdl-tsclient includes dev dependencies HOT 1
- Running into an issue with OpenBraceToken child on valid wsdl HOT 3
- Attributes not generated HOT 1
- Generated Index Errors
- Ordering of elements in XSD Sequence not honoured
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsdl-tsclient.