I mean to include this link, which at the end of a page there is a better
xmlbeans example.

https://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html

On Tue, Dec 6, 2022 at 4:04 AM robertlazarski <robertlazar...@gmail.com>
wrote:

> Did you ever figure this out?
>
> I got busy this past week, however I am interested in seeing how this
> could work.
>
> I'd start here, by running this xmlbeans example with wsdl2java. Then
> compare your wsdl with soap encoding to see what is missing.
>
>
> https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html
>
> On Wed, Nov 30, 2022 at 3:25 AM Thiago Milczarek Sayão <
> thiago.sa...@gmail.com> wrote:
>
>> 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.
>>>>>
>>>>

Reply via email to