你好吗?我有问题,我需要使用Web服务,但是我需要将窗口的凭据发送给它,无论我的凭据是否正确,都没有用户名或密码。 WS仅验证我在Windows中的登录正确。我只需要如何获取该信息,以及如何从Java应用程序将该信息发送到WS。请!!有人可以帮我吗?..非常感谢!!!
这是我的代码:
public static void main(String[] args) {
System.setProperty("java.net.useSystemProxies","true");
XMLGregorianCalendar fechaInicio= new XMLGregorianCalendarImpl();
fechaInicio.setDay(01);
fechaInicio.setMonth(10);
fechaInicio.setYear(2019);
XMLGregorianCalendar fechaFin= new XMLGregorianCalendarImpl();
fechaFin.setDay(15);
fechaFin.setMonth(10);
fechaFin.setYear(2019);
int minutos=120;
try {
//System.out.println(System.getProperty("user.name"));
StandardOperationResultOfArrayOfComercialQualityCallbrDEP2YV llamadas= getcomercialQualityCalls(fechaInicio,fechaFin,minutos);
} catch (Exception e) {
System.out.println(e.getMessage());
}
System.out.println("listo");
// TODO code application logic here
}
private static StandardOperationResultOfArrayOfComercialQualityCallbrDEP2YV getcomercialQualityCalls(javax.xml.datatype.XMLGregorianCalendar initialFilterDate,javax.xml.datatype.XMLGregorianCalendar endFilterDate,java.lang.Integer excluedCallsInminute) {
org.tempuri.ResponderService service = new org.tempuri.ResponderService();
org.tempuri.IResponderService port = service.getNoanetResponderServicesServiceLayerIResponderService();
return port.getcomercialQualityCalls(initialFilterDate,endFilterDate,excluedCallsInminute);
}