N
N
nikesport2017-02-28 12:26:23
Java
nikesport, 2017-02-28 12:26:23

How to generate byte array when generating classes from WSDL?

wsdl snippet:

<complexType name="Example">
                    <sequence>
                        <element maxOccurs="unbounded" minOccurs="0" name="base64bytes" type="xsd:byte"/>
                        <element name="fileName" nillable="true" type="xsd:string"/>
                    </sequence>
                </complexType>

After generating via jaxws-maven-plugin intellijIDEA:
@XmlElement(name = "base64bytes", type = Byte.class)
    protected List<Byte> base64Bytes;

How to change wsdl or service to generate an array of bytes and not a list?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Ne-Lexa, 2017-02-28
@nikesport

<element name="base64bytes" 
                minOccurs="0"
                type="xsd:base64Binary"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question