Robert, Thanks for the reply.
I will try with xmlbeans as databinding. One question: cur.insertElementWithText("processSyncReturn","this is array element 2"); This is the example on stackoverflow. How would I insert a complex type, instead of a string? My guess it to serialize de XmlObject and insert as string. How would I do that? Thanks. Em ter., 29 de nov. de 2022 às 17:59, robertlazarski < robertlazar...@gmail.com> escreveu: > Sorry, wrong link: > > > https://stackoverflow.com/questions/11561194/how-can-i-get-axis2-to-handle-an-array > > On Tue, Nov 29, 2022 at 10:56 AM robertlazarski <robertlazar...@gmail.com> > wrote: > >> 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. >>> >>