Good morning,
I am trying to consume the test webservice that has the aeat for the SII and the following error appears:
Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.
java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex (Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse (Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse (Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse (Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL (Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate. (Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate. (Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate. (Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate. (Unknown Source) at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate (Unknown Source) at javax.xml.ws.Service. (Unknown Source) at https.www2_agenciatributaria_gob_es.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.suministrofactemitidas.SiiService. (SiiService.java:42) at app.EnvioFacturas.main (EnvioFacturas.java:12)
I have generated the classes with
wsimport -b bindings.xml -d srcb -keep htt
p://www.agenciatributaria.es/static_files/AEAT/Contenidos_Comunes/La_Agencia_Tri
butaria/Modelos_y_formularios/Suministro_inmediato_informacion/FicherosSuministr
os/V_07/SuministroFactEmitidas.wsdl
and the content of the bindings.xml is as follows;
<jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
<jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
</jaxws:bindings>
and the error appears when trying to instantiate the service:
https.www2_agenciatributaria_gob_es.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.suministrofactemitidas.SiiService service = new https.www2_agenciatributaria_gob_es.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.suministrofactemitidas.SiiService();
https.www2_agenciatributaria_gob_es.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.suministrofactemitidas.SiiSOAP port = service.getSuministroFactEmitidasPruebas();
I do not know if it is an error in the generation of the classes or in the instantiation that I am doing wrong. The code is self-generated with the wsimport and the only thing I've done is try to instantiate the service and the port.
Can someone help me out? Would it be necessary to add something in the generation of the classes or in the instantiation of the service and the port?