Apache Axis 1.4 클라이언트를 사용하여 프록시를 통해 웹 서비스에 액세스 할 때 문제가 있습니다. 첫 번째 것들에서AxisProperties 프록시 설정 축 1.4에서 작동하지 않음
이 작동하지만, 어떤 점에서 (간격을 결정하지 않은) 프록시가 바로 작동이 중지 내가 받기 시작 :
if (proxyHost != null && !proxyHost.isEmpty()) {
logger.warn("Using proxy server: " + proxyHost + " port " + proxyPort);
AxisProperties.getProperties().put("proxySet", "true");
AxisProperties.setProperty("http.proxyHost", proxyHost);
AxisProperties.setProperty("http.proxyPort", proxyPort);
if (proxyUser != null && !proxyUser.isEmpty()) {
logger.warn("User proxy user: " + proxyUser);
AxisProperties.setProperty("http.proxyUser", proxyUser);
AxisProperties.setProperty("http.proxyPassword", proxyPassword);
}
} //then make call
Stub binding = (Stub) new ServiceLocator().getServiceSoap(new URL(myUrl));
은 내가 놓친 : UnknownHostException의 여기
코드입니다 중요한 포인트?