Hi i need to call SOAP api. There is no official library so i am using <https://github.com/pdvrieze/...
v
Hi i need to call SOAP api. There is no official library so i am using https://github.com/pdvrieze/xmlutil . Is there a way how to specify more namespaces than one, using this library? My soap request is like this. I need to create a data classes to represent it.
Copy code
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="<http://schemas.xmlsoap.org/soap/envelope/>" xmlns="<http://www.pds.eu/vOKO/v0200>" xmlns:eph="<http://www.ccv.cz/EPH_GCP01G>">
   <soapenv:Body>
      <Request vOKOid="EPH_GCP01G">
         <RequestContent>
            <eph:REQUEST>
               <eph:GETDATA>1</eph:GETDATA>
               <eph:IDLAST>22</eph:IDLAST>
            </eph:REQUEST>
         </RequestContent>
      </Request>
   </soapenv:Body>
</soapenv:Envelope>
As you can see, there are more than one namespace in the envelope.I xmlutil is only @XmlSerialName which can specify only one namespace. How should i handle this?
d
Create an issue in the repo because the maintainer might not be monitoring this chat.
v
I am not sure if it is an issue, maybe it is somehow supported. 🤷
d
@pdvrieze is the one to poke
1
p
Indeed, I tend not to monitor this chat. But it has been resolved/clarified. Basically namespaces are handled automatically