Re: Help with old service that uses soap encoding

robertlazarski <[email protected]> Tue, 29 Nov 2022 10:56:47 -1000
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBX_Q7uVA-n3Yad552JVjMA32VHDGANkXjfvfd4KNTqfHA@mail.gmail.com>
--0000000000009b1c6205eea23af4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=C3=A3o <
[email protected]> wrote:

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

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

<div dir=3D"ltr"><div>Axis2 doesn&#39;t support soapenc. <br></div><div><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 XMLBeans AP=
I 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 href=
=3D"https://stackoverflow.com/questions/74577973/how-to-use-array-soap-enco=
ding-type-with-axis2-xmlbeans">https://stackoverflow.com/questions/74577973=
/how-to-use-array-soap-encoding-type-with-axis2-xmlbeans</a></div><div><br>=
</div><div>If you get that to work, I&#39;d document it if you could provid=
e 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"mailto:thiago.sayao@gma=
il.com" target=3D"_blank">[email protected]</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hello,<div=
><br></div><div>I&#39;ve posted the question here:</div><div><a href=3D"htt=
ps://stackoverflow.com/questions/74577973/how-to-use-array-soap-encoding-ty=
pe-with-axis2-xmlbeans" target=3D"_blank">https://stackoverflow.com/questio=
ns/74577973/how-to-use-array-soap-encoding-type-with-axis2-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/farmaciapopular-autorizado=
r/services/ServicoSolicitacaoWS?wsdl" target=3D"_blank">https://farmaciapop=
ular-autorizador.saude.gov.br/farmaciapopular-autorizador/services/ServicoS=
olicitacaoWS?wsdl</a><br></div><div><br></div><div>&lt;complexType name=3D&=
quot;ArrayOfMedicamentoDTO&quot;&gt;<br>&lt;complexContent&gt;<br>&lt;restr=
iction base=3D&quot;soapenc:Array&quot;&gt;<br>&lt;attribute ref=3D&quot;so=
apenc:arrayType&quot; wsdl:arrayType=3D&quot;impl:MedicamentoDTO[]&quot;/&g=
t;<br>&lt;/restriction&gt;<br>&lt;/complexContent&gt;<br>&lt;/complexType&g=
t;<br></div><div><br></div><div>It generates=C2=A0a class=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>

--0000000000009b1c6205eea23af4--