0

I wrote below method to call soap client which connects to web service. below code work fine in test class but after deploy my war into bea weblogic9 i got HTTP/1.1 500 error. and i am can not what is wrong in my code as it works fine locally.`

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;
}
4

1 回答 1

0

ServiceReadyServices 和 ServiceReadyClient 来自您的自定义 API?尝试将 Web 服务 URL 传递给上述 API 类。

于 2013-09-05T05:49:58.493 回答