Jax-ws/ws-addressing was 8.5.5 compilation error and unreachable WSDL error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.