Index: src/lib/silibconfig.h.in
===================================================================
--- src/lib/silibconfig.h.in	(revision e4980702ba64d5e47a89bf5c21c5ba6da3f67eff)
+++ src/lib/silibconfig.h.in	(revision 915dc1852a6aa7d67755cb64c0cff72edbe7dd4c)
@@ -1,4 +1,4 @@
 /*
-    Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
 
     This library is free software; you can redistribute it and/or
Index: src/lib/siwebserviceclient.cpp
===================================================================
--- src/lib/siwebserviceclient.cpp	(revision e4980702ba64d5e47a89bf5c21c5ba6da3f67eff)
+++ src/lib/siwebserviceclient.cpp	(revision 915dc1852a6aa7d67755cb64c0cff72edbe7dd4c)
@@ -45,10 +45,10 @@
 }
 
-SiWebserviceClient::ReplyType SiWebserviceClient::stationsRegister(SiWeatherStation station, QString &error)
+SiWebserviceClient::ReplyType SiWebserviceClient::stationsRegister(const SiWeatherStation &station, QString &error)
 {
 	if(!_networkManager)
 		return Error;
 
-	if(station.name().isEmpty() || station.city().isEmpty() || station.eMail().isEmpty()){
+	if(station.name().isEmpty() || station.city().isEmpty() || station.eMail().isEmpty() || station.type().isEmpty()){
 		error = tr("Station has empty name, city or eMail address. All of these are needed!");
 		return Error;
@@ -61,8 +61,10 @@
 	jsonStation["latitude"] = Library::geoCoordinateToString(station.latitude());
 	jsonStation["email"] = station.eMail();
+	jsonStation["type"] = station.type();
+	jsonStation["typeUrl"] = station.typeUrl().toString();
 	QJsonDocument jsonDocument(jsonStation);
 
 	QNetworkRequest request;
-	request.setUrl(QString("%1%2").arg(_baseUrl.toString()).arg("/stations/register"));
+	request.setUrl(QString("%1%2").arg(_baseUrl.toString()).arg("index.php/stations/register"));
 	request.setRawHeader("User-Agent", QString("SiWeather Library %1").arg(Library::version()).toUtf8());
 	request.setHeader(QNetworkRequest::ContentTypeHeader, 
@@ -81,21 +83,25 @@
 	
 	QByteArray data = reply->readAll();
-	QJsonDocument jsonDocument = QJsonDocument::fromBinaryData(data);
+	reply->deleteLater();
+
+	QJsonDocument jsonDocument = QJsonDocument::fromJson(data);
 	QJsonObject json = jsonDocument.object();
 	if(!json.contains("result")){
 		emit finishedStationsRegister(false, "", tr("No result in response found"));
+		emit finished(StationsRegister, false, data);
 		return;
 	}
 	if(json["result"].toString() != "success"){
 		emit finishedStationsRegister(false, "", tr("Operation failed for reason: %1").arg(json["message"].toString()));
+		emit finished(StationsRegister, false, data);
 		return;
 	}
 	if(!json.contains("uuid")){
 		emit finishedStationsRegister(false, "", tr("No uuid in response found"));
+		emit finished(StationsRegister, false, data);
 		return;
 	}
-	emit finishedStationsRegister(true, QUuid(json["uuid"].toString()), "");
-	emit finished(StationsRegister, data);
-	reply->deleteLater();
+	emit finishedStationsRegister(true, QUuid(json["uuid"].toString()), json["message"].toString());
+	emit finished(StationsRegister, false, data);
 }
 
@@ -120,3 +126,2 @@
 	return reply;
 }
-
Index: src/lib/siwebserviceclient.h
===================================================================
--- src/lib/siwebserviceclient.h	(revision e4980702ba64d5e47a89bf5c21c5ba6da3f67eff)
+++ src/lib/siwebserviceclient.h	(revision 915dc1852a6aa7d67755cb64c0cff72edbe7dd4c)
@@ -48,8 +48,8 @@
 				 * @brief Registers a station at the server and emits error() or finishedStationsRegister() if finished.
 				 */
-				ReplyType stationsRegister(SiWeatherStation station, QString &error);
+				ReplyType stationsRegister(const SiWeather::Library::SiWeatherStation& station, QString& error);
 
 			signals:
-				void error(ReplyType replyType, const QString &errorMessage) const;
+				void error(SiWeather::Library::SiWebserviceClient::ReplyType replyType, const QString &errorMessage) const;
 				/**
 				 * @brief Generic finish signal for all requests. Use specialized finished signals instead!
@@ -57,5 +57,5 @@
 				 * @see finishedStationsRegister
 				 */
-				void finished(ReplyType replyType, const QByteArray &data) const;
+				void finished(SiWeather::Library::SiWebserviceClient::ReplyType replyType, bool result, const QByteArray &data) const;
 				void finishedStationsRegister(bool result, const QUuid &uuid, const QString &message) const;
 				
