Giter Club home page Giter Club logo

Comments (1)

dderevjanik avatar dderevjanik commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.