WebService (XML return) - JAVA

0

Good morning. I'm trying to make some requests for a web service, but I do not have much experience in the subject and I went to see some forums how to make the connection; In summary, I used jax-B to generate the classes and when I make the requests, the returns are very strange. Analyzing classes and WSDL:

I have verified that the request looks like this:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ListarPorCpf xmlns="http://rsconsis.uni.cc/">
  <cpf>string</cpf>
</ListarPorCpf>
</soap:Body>
</soap:Envelope>

and I noticed that the return is like this:

<soap12:Body>
<ListarPorCpfResponse xmlns="http://rsconsis.uni.cc/">
<ListarPorCpfResult>xmlxml</ListarPorCpfResult>
</ListarPorCpfResponse>
</soap12:Body>

When I import the .class from jax-b it creates a "complex-type" that returns me a list and that's where I got lost. What is being "xml", what is being "xmlxml" and what is being treated as a "list"?

NOTE: I am sending the CPF in the format "XXXXXXXXXXX" and in the format "XXX.XXX.XXX-XX" and both return this to me (below) when I send a print of the "list" it returns me:

[[xs:schema: null], [diffgr:diffgram: null]]

NOTE: There is nothing documented, only thing I have of the WebService is .ASMX (well without information) and WDSL

    
asked by anonymous 13.11.2018 / 15:00

0 answers