首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >JDK1.7中是否存在"getPort“方法?

JDK1.7中是否存在"getPort“方法?
EN

Stack Overflow用户
提问于 2015-07-09 15:46:23
回答 1查看 40关注 0票数 0

我试图通过使用来自Eclipse的WebService来学习SOAP。在我打印WSDL之后,生成的类就有了这个问题。“getHelloWorldImplPort()方法未为HelloWorldImplService类型定义”

JDK1.7中是否存在"getPort“方法?如果没有,解决办法是什么?

代码语言:javascript
复制
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());
        }
    }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-10 08:55:22

你所看到的问题并没有告诉任何关于getPort的事情。它告诉您,类getHelloWorldImplPort()中没有方法HelloWorldImplService

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31322352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档