Jax-ws/ws-addressing was 8.5.5 compilation error and inaccessible WSDL error jax-ws/ws-addressing was 8.5.5 compilation error and unreachable WSDL error
I tried to develop a sample ws-addressing application with is 8.5.5 but got failure all the times. Referring to some examples, try to do a simple ws-addressing application on the WAS8.5.5, a few days down, always encounter the same inexplicable error error 1:compilation error, W3cendpointreference cannot be a return type.In a few examples, a simple SEI interface was written
@Addressing @WebService publicinterface ICalculator { public w3cendpointreference GetToken (); }
in Eclipse (KEPLER-SR2) + WAS8.5.5 plug-in, the error message says, "Class javax.xml.ws.wsaddressing.W3CEndpointReference may not be used as a return type or method parameter a s it had inner types that is not public and static "in order to exclude the code error, I built another application, but chose Tomcat 7.0 as the target runtime environment. The same code compiles successfully. Then try the rad9+was8.5.5 again, and the results are also compiled successfully. What is the cause of the mistake?
Error 2:web service access error address because of error 1, I decided to skip the Sei interface and write the implementation class directly. Interestingly, this time, return type W3cendpointreference will not error.
Public w3cendpointreference GetToken () { ... return (w3cendpointreference) ctx.get
The Web service code is a class that packages and publishes it to WAS8.5.5,
Test access WSDL successfully http://localhost:9082/CalculatorWeb/CalculatorService/CalculatorService.wsdl then use WAS8.5.5 's Wsimport tool ( Was_home/java/bin/wsimport) to generate the client code wsimport-s. CLIENT_SRC http://localhost:9082/CalculatorWeb/CalculatorService/ Calculatorservice.wsdl strange thing happened, generated the client code unexpectedly error "FileNotFoundException", generated proxy incredibly try to access a wrong URL http://localhost : 9082/calculatorweb/calculatorservice/?wsdl. This end of "calculatorservice/?wsdl" rather than "calculatorservice?wsdl". In both Eclipse and RAD9, the same error has been tested.
Jax-ws/ws-addressing was 8.5.5 compilation error and unreachable WSDL error