Axis2 doesn't support soapenc. Axis 1.x does, but you likely don't want to use that.
Some have claimed that you can use the XMLBeans API directly, after you run wsdl2code. See the bottom of this link for an example. https://stackoverflow.com/questions/74577973/how-to-use-array-soap-encoding-type-with-axis2-xmlbeans If you get that to work, I'd document it if you could provide a working example. On Tue, Nov 29, 2022 at 8:27 AM Thiago Milczarek Sayão < thiago.sa...@gmail.com> wrote: > Hello, > > I've posted the question here: > > https://stackoverflow.com/questions/74577973/how-to-use-array-soap-encoding-type-with-axis2-xmlbeans > > I want to use this service: > > https://farmaciapopular-autorizador.saude.gov.br/farmaciapopular-autorizador/services/ServicoSolicitacaoWS?wsdl > > <complexType name="ArrayOfMedicamentoDTO"> > <complexContent> > <restriction base="soapenc:Array"> > <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:MedicamentoDTO[]"/> > </restriction> > </complexContent> > </complexType> > > It generates a class ArrayOfMedicamentoDTO that extentds Array, but > there's no way to add items to it. > > Thanks. >