public static void main(String[] args) {
		// Erstellung einer Verbindung zum Soap Server
		String username = args[0];
		String password = args[1];
		try {
			SoapServer servicePort = ServiceHelper.getService(username, password);
			if(servicePort != null)
			{
				// Create file 
				FileWriter fstream = new FileWriter("out.txt");
				BufferedWriter out = new BufferedWriter(fstream);
	
				GregorianCalendar c = new GregorianCalendar();
				c.setTime(dateFormat.parse("14.11.2013"));
				XMLGregorianCalendar publishDate;
				
				for(int j = 0; j < 365; j++) {
					publishDate = DatatypeFactory.newInstance()
							.newXMLGregorianCalendar(c);
					LongArray arrayList = servicePort.getPublishedNoticeList(publishDate);
					List<Long> noticeList = arrayList.getItem();
		
					for (int i = 0; i < noticeList.size(); i++) {
						long documentId = noticeList.get(i);
						String contentXml = servicePort.getNoticeXml(documentId);
						out.write(documentId + " " + contentXml.replace("\n", " ")+ "\n");
					}
					System.out.println(c.get(Calendar.DAY_OF_MONTH) + "." + (c.get(Calendar.MONTH) + 1) + "." + c.get(Calendar.YEAR));
					c.add(Calendar.DAY_OF_MONTH, 1);
				}
				out.close();
			}
			System.out.println("FIN");
		} catch (Fault f) {
			 System.out.println("Fault Code:" + f.getFaultInfo().getCode()); 
			 System.out.println("Message:" + f.getFaultInfo().getMessage()); 
			 f.printStackTrace();
			 
		} catch (Exception e) {
			e.printStackTrace();
		}
	}