Hi All,
I was trying the example of Ivan’s study notes for SCDJWS (4.9 JAX-WS Web Service Clients). While trying static Clients after generating the artifacts in RAD7, I am getting below error:-
Exception in
thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: file:./WEB-INF/wsdl/CalculatorService.wsdl. It failed with:
.\WEB-INF\wsdl\CalculatorService.wsdl (The system cannot find the path specified.).
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:148)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:134)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:227)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:190)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:160)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:92)
at javax.xml.ws.Service.<init>(Service.java:67)
at com.ivan.calculator.CalculatorService.<init>(CalculatorService.java:38)
at com.ivan.client.CalculatorClient.callService(CalculatorClient.java:25)
at com.ivan.client.CalculatorClient.main(CalculatorClient.java:15)
Caused by: java.io.FileNotFoundException: .\WEB-INF\wsdl\CalculatorService.wsdl (The system cannot find the path specified.)
at java.io.FileInputStream.<init>(FileInputStream.java:112)
Seems to be problems with the dependency injection and also when I try to create the service in the code then I am getting this error, could you please let me know if I need to change anything in code?
Thanks