Re: Help with old service that uses soap encoding

robertlazarski <[email protected]> Tue, 29 Nov 2022 10:58:11 -1000
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBUfaKnmdKt=WyFSDYG9HDQW5GtiLTLagE6xNS_A_X+WrA@mail.gmail.com>
--00000000000097fbe705eea23f4d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 <[email protected]>
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-encodi=
ng-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=C3=A3o <
> [email protected]> wrote:
>
>> Hello,
>>
>> I've posted the question here:
>>
>> https://stackoverflow.com/questions/74577973/how-to-use-array-soap-encod=
ing-type-with-axis2-xmlbeans
>>
>> I want to use this service:
>>
>> https://farmaciapopular-autorizador.saude.gov.br/farmaciapopular-autoriz=
ador/services/ServicoSolicitacaoWS?wsdl
>>
>> <complexType name=3D"ArrayOfMedicamentoDTO">
>> <complexContent>
>> <restriction base=3D"soapenc:Array">
>> <attribute ref=3D"soapenc:arrayType"
>> wsdl:arrayType=3D"impl:MedicamentoDTO[]"/>
>> </restriction>
>> </complexContent>
>> </complexType>
>>
>> It generates a class  ArrayOfMedicamentoDTO that extentds Array, but
>> there's no way to add items to it.
>>
>> Thanks.
>>
>

--00000000000097fbe705eea23f4d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Sorry, wrong link: <br></div><div><br></div><div><a h=
ref=3D"https://stackoverflow.com/questions/11561194/how-can-i-get-axis2-to-=
handle-an-array">https://stackoverflow.com/questions/11561194/how-can-i-get=
-axis2-to-handle-an-array</a></div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 29, 2022 at 10:56 AM robertl=
azarski &lt;<a href=3D"mailto:[email protected]">robertlazarski@gmai=
l.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:=
1ex"><div dir=3D"ltr"><div>Axis2 doesn&#39;t support soapenc. <br></div><di=
v><br></div><div>Axis 1.x does, but you likely don&#39;t want to use that. =
<br></div><div><br></div><div>Some have claimed that you can use the XMLBea=
ns API directly, after you run wsdl2code. <br></div><div><br></div><div>See=
 the bottom of this link for an example. <br></div><div><br></div><div><a h=
ref=3D"https://stackoverflow.com/questions/74577973/how-to-use-array-soap-e=
ncoding-type-with-axis2-xmlbeans" target=3D"_blank">https://stackoverflow.c=
om/questions/74577973/how-to-use-array-soap-encoding-type-with-axis2-xmlbea=
ns</a></div><div><br></div><div>If you get that to work, I&#39;d document i=
t if you could provide a working example.=C2=A0 <br></div><div><br></div></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
 Tue, Nov 29, 2022 at 8:27 AM Thiago Milczarek Say=C3=A3o &lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d=
ir=3D"ltr">Hello,<div><br></div><div>I&#39;ve posted the question here:</di=
v><div><a href=3D"https://stackoverflow.com/questions/74577973/how-to-use-a=
rray-soap-encoding-type-with-axis2-xmlbeans" target=3D"_blank">https://stac=
koverflow.com/questions/74577973/how-to-use-array-soap-encoding-type-with-a=
xis2-xmlbeans</a><br></div><div><br></div><div>I want to use this service:<=
/div><div><a href=3D"https://farmaciapopular-autorizador.saude.gov.br/farma=
ciapopular-autorizador/services/ServicoSolicitacaoWS?wsdl" target=3D"_blank=
">https://farmaciapopular-autorizador.saude.gov.br/farmaciapopular-autoriza=
dor/services/ServicoSolicitacaoWS?wsdl</a><br></div><div><br></div><div>&lt=
;complexType name=3D&quot;ArrayOfMedicamentoDTO&quot;&gt;<br>&lt;complexCon=
tent&gt;<br>&lt;restriction base=3D&quot;soapenc:Array&quot;&gt;<br>&lt;att=
ribute ref=3D&quot;soapenc:arrayType&quot; wsdl:arrayType=3D&quot;impl:Medi=
camentoDTO[]&quot;/&gt;<br>&lt;/restriction&gt;<br>&lt;/complexContent&gt;<=
br>&lt;/complexType&gt;<br></div><div><br></div><div>It generates=C2=A0a cl=
ass=C2=A0

ArrayOfMedicamentoDTO that extentds Array, but there&#39;s no way to add it=
ems to it.</div><div><br></div><div>Thanks.</div></div>
</blockquote></div>
</blockquote></div>

--00000000000097fbe705eea23f4d--