0
이것은 내 코드입니다. .asmx? WSDL 웹 서비스를 사용하려고합니다.org.apache.axis2.AxisFault : 전송 오류 : 407 오류 : 프록시 인증 필요
오류 : org.apache.axis2.AxisFault : 전송 오류 : 407 오류 : 프록시 인증 필요
package org.tempuri;
import org.apache.axis2.AxisFault;
import org.tempuri.ServiceStub.Get_All_Pendancy_List;
import org.tempuri.ServiceStub.Get_All_Pendancy_ListResponse;
public class TestClient {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
//
//
//Proxy Settings
System.getProperties().put("http.proxyHost", "111.11.11.11");
System.getProperties().put("http.proxyPort", "1111");
System.getProperties().put("http.proxyUser", "11111");
System.getProperties().put("http.proxyPassword", "[email protected]");
ServiceStub serviceStub = new ServiceStub();
Get_All_Pendancy_List gpl = new Get_All_Pendancy_List();
gpl.setDept_code("1111");
gpl.setUsr("1111");
gpl.setPasswd("[email protected]");
gpl.setDate("01/01/2012");
Get_All_Pendancy_ListResponse response = serviceStub.get_All_Pendancy_List(gpl);
System.out.println(response.getGet_All_Pendancy_ListResult());
} catch(AxisFault e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}
}
어떤 제안이? 프록시 구성을 어떻게 설정해야합니까?
당신이에서 프록시 호스트 매개 변수를 제공해야 그 때는 프록시 서버? 뒤에 백엔드 srvice는 ... 여기있다, 이것은 당신이 축 2에 대한 코드를 설정 프록시를 설정하는 방법입니다 axis2.xml 전송 보낸 사람 – Ratha
나는 axis2.xml에서 프록시 설정을 설정하려 ..하지만 일을 가져올 수 없습니다 .. <매개 변수 이름 = "프록시"> <구성> example.org 5678 EXAMPLE \ saminda ppp ProxyPassword> Configuration> –
SaK