Issue
I want to consume this Web Service: https://celcer.sri.gob.ec/comprobantes-electronicos-ws/AutorizacionComprobantesOffline?wsdl
The documentation about the Web Service say that I have to send an xml document as a parameter and the web service will return and XML object.
I've already tried in Netbeans creating a new class --> web service client--> wsdl and I got this:
A package named autorizacion.ws.sri.gob.ec and a bunch of classes with him. I'd like to know how can I create a constructor for those classes so I can send XML file as parameter? And how can I use the XML object to see the answers?
Thank you for your help I've been trying this for two weeks.
Solution
In soap-based web service you need to generate java artifact/client. You have multiple options to generate it, Kindly follow the link to get more detail
- How do you convert WSDLs to Java classes using Eclipse?
- How to generate classes from wsdl using Maven and wsimport?
Answered By - roushan kumar Singh