Re: Help with old service that uses soap encoding
Thiago Milczarek Sayão <[email protected]> Wed, 30 Nov 2022 10:24:53 -0300
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <CAAP_wum6wNrJrWnmtU7q9DocKr0iLL4G32ZKnqzHiMrwc0fdmQ@mail.gmail.com> |
--00000000000055b6ff05eeb008b0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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 =C3=A0s 17:59, robertlazarski <
[email protected]> escreveu:
> Sorry, wrong link:
>
>
> https://stackoverflow.com/questions/11561194/how-can-i-get-axis2-to-handl=
e-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-encod=
ing-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-enco=
ding-type-with-axis2-xmlbeans
>>>
>>> I want to use this service:
>>>
>>> https://farmaciapopular-autorizador.saude.gov.br/farmaciapopular-autori=
zador/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.
>>>
>>
--00000000000055b6ff05eeb008b0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Robert,</div><div><br></div>Thanks for the reply.<div=
><br></div><div>I will try with xmlbeans as databinding.</div><div><br></di=
v><div>One question:</div><div><br></div><div><br></div><div><pre class=3D"=
gmail-default gmail-s-code-block" style=3D"margin-top:0px;border:0px;font-v=
ariant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit=
;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;ove=
rflow:auto"><code class=3D"gmail-hljs gmail-language-sql" style=3D"margin:0=
px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weig=
ht:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;ver=
tical-align:baseline;box-sizing:inherit;background-color:transparent;white-=
space:inherit"> cur.insertElementWithText("processSyncReturn",=
"this is array element 2");
</code></pre><br class=3D"gmail-Apple-interchange-newline"></div><div>This =
is the example on stackoverflow.</div><div><br></div><div>How would I inser=
t a complex type, instead of a string? My guess it to serialize de XmlObjec=
t and insert as string. How would I do that?</div><div><br></div><div>Thank=
s.</div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">Em ter., 29 de nov. de 2022 =C3=A0s 17:59, robertlaz=
arski <<a href=3D"mailto:[email protected]">robertlazarski@gmail.=
com</a>> escreveu:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div dir=3D"ltr"><div>Sorry, wrong link: <br></div><div><br></div><di=
v><a href=3D"https://stackoverflow.com/questions/11561194/how-can-i-get-axi=
s2-to-handle-an-array" target=3D"_blank">https://stackoverflow.com/question=
s/11561194/how-can-i-get-axis2-to-handle-an-array</a></div></div><br><div c=
lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 29, =
2022 at 10:56 AM robertlazarski <<a href=3D"mailto:robertlazarski@gmail.=
com" target=3D"_blank">[email protected]</a>> wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Axis2 =
doesn't support soapenc. <br></div><div><br></div><div>Axis 1.x does, b=
ut you likely don't want to use that. <br></div><div><br></div><div>Som=
e have claimed that you can use the XMLBeans API directly, after you run ws=
dl2code. <br></div><div><br></div><div>See the bottom of this link for an e=
xample. <br></div><div><br></div><div><a href=3D"https://stackoverflow.com/=
questions/74577973/how-to-use-array-soap-encoding-type-with-axis2-xmlbeans"=
target=3D"_blank">https://stackoverflow.com/questions/74577973/how-to-use-=
array-soap-encoding-type-with-axis2-xmlbeans</a></div><div><br></div><div>I=
f you get that to work, I'd document it 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 Thi=
ago Milczarek Say=C3=A3o <<a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a>> wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hello,<div><br></div><=
div>I've posted the question here:</div><div><a href=3D"https://stackov=
erflow.com/questions/74577973/how-to-use-array-soap-encoding-type-with-axis=
2-xmlbeans" target=3D"_blank">https://stackoverflow.com/questions/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://farm=
aciapopular-autorizador.saude.gov.br/farmaciapopular-autorizador/services/S=
ervicoSolicitacaoWS?wsdl" target=3D"_blank">https://farmaciapopular-autoriz=
ador.saude.gov.br/farmaciapopular-autorizador/services/ServicoSolicitacaoWS=
?wsdl</a><br></div><div><br></div><div><complexType name=3D"ArrayOf=
MedicamentoDTO"><br><complexContent><br><restriction base=
=3D"soapenc:Array"><br><attribute ref=3D"soapenc:array=
Type" wsdl:arrayType=3D"impl:MedicamentoDTO[]"/><br></=
restriction><br></complexContent><br></complexType><br></div=
><div><br></div><div>It generates=C2=A0a class=C2=A0
ArrayOfMedicamentoDTO that extentds Array, but there's no way to add it=
ems to it.</div><div><br></div><div>Thanks.</div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
--00000000000055b6ff05eeb008b0--