I try to learn SOAP, by using WebService from Eclipse. After I prased the WSDL, I have this problem with generated classes. "The method getHelloWorldImplPort() is undefined for the type HelloWorldImplService"
Did method "getPort" exist in jdk 1.7 ? If not, what is the solution ?
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
response.setContentType("text/html");
try {
HelloWorldImplService helloWorldService = new HelloWorldImplService();
HelloWorld helloWorld = helloWorldService.getHelloWorldImplPort();
out.print(helloWorld.helloWorld("Silviu"));
} catch (Exception e) {
out.print(e.getMessage());
}
}
The problem you´re seeing doesn´t tell anything about getPort
. It tells you that there is no method getHelloWorldImplPort()
in your class HelloWorldImplService
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.