我写下面的方法来调用连接到web服务的soap客户端。下面的代码在测试类中工作正常,但在将我的战争部署到bea weblogic9后,我得到了HTTP / 1.1 500错误。我不能在我的代码中出错,因为它在本地工作正常。
public boolean isServiceReady(String msisdn) throws Exception
{
logger.info("check if the service ready or not for " + msisdn);
if("".equals(msisdn))
{
throw new IllegalArgumentException("no active msisdn for logged user");
}
ServiceReadyClient nfcClient = ServiceReadyClient.getInstance(true);
ServiceReadyServices services = nfcClient.getServices();
if(services == null)
{
throw new ServiceReadyClientException("NFC Client not ready yet");
}
IsServiceReadyResponse result = services.isServiceReady("tel:" + msisdn, CSS_CLIENT);
return (result != null && result.getReadinessStatus() != null) ?
"YES".equals(result.getReadinessStatus().getValue()) : false;
}
答案 0 :(得分:0)
ServiceReadyServices和ServiceReadyClient来自您的自定义API? 尝试将Web服务URL传递给上面的API类。