Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Last active February 9, 2017 17:19
Show Gist options
  • Save ChrisMoney/035c06b3c92596e4d6cd671876598b5e to your computer and use it in GitHub Desktop.
Save ChrisMoney/035c06b3c92596e4d6cd671876598b5e to your computer and use it in GitHub Desktop.
WCF - Implementation
// Right click Service Reference in Visual Studio
// Click Configuration
// Add WSDL url
// Make sure the service returns as a list & dictionary
private bool SaveToSettingsWeb(KIOSK_Properties dto)
{
List<string> macIds = CurrentIP.GetLocalMacs().ToList<string>();
// proxy uses settings from the client config file which points to the actual WCF config file
//so no need to plug anything in here but the client instantation itself
WS_Kiosk.KioskClient proxy = new WS_Kiosk.KioskClient();
bool updateSuccess = proxy.UpdateKiosk(dto);
return updateSuccess;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment