【问题标题】:who to set JAXWS 2.2 client timeout谁来设置 JAXWS 2.2 客户端超时
【发布时间】:2011-12-24 10:20:19
【问题描述】:

我有一个带有动态 url 的简单 JAXWS 客户端。 我想添加超时。但是我在这里找到的所有示例都不像我的客户。 这是我的代码:

QName qname = new QName(responseUrl,"sendMessage"); 
        MyApiService myApiService = new myApiService(newEndpoint,qname);         
        myApi port = myApiService.getmyApiPort();



        NPACK nPACK = port.sendMessage(nPMESSAGE);

如何在我的客户端中实现thisthis

【问题讨论】:

    标签: java timeout client jax-ws


    【解决方案1】:
    ((BindingProvider)port).getRequestContext()...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-09
      • 2017-04-04
      • 1970-01-01
      • 1970-01-01
      • 2020-04-27
      • 2011-07-11
      • 2014-03-01
      • 1970-01-01
      相关资源
      最近更新 更多