Skip to content

Instantly share code, notes, and snippets.

View steefjan's full-sized avatar

Steef-Jan Wiggers steefjan

View GitHub Profile
/// <summary>
/// Event Handler for Read button click
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnRead_Click(object sender, EventArgs e)
{
//create an instance MessageQueue, which points to the already existing Private Queue
MessageQueue mq = new MessageQueue(@".\PRIVATE$\SALESFORCECONTACT");
//New instance of Message
/// <summary>
/// Event Handler for Send button click
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnSend_Click(object sender, EventArgs e)
{
//create an instance MessageQueue, which points to the already existing SalesForceCustomer
MessageQueue mq = new MessageQueue(@".\PRIVATE$\SalesForceCustomer");
//Create instance Message
/// <summary>
/// Eventhandler for GetDetails button click
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnGetDetails_Click(object sender, EventArgs e)
{
//Initialize textbox
txtAccountDetails.Text = "";
//Create instance proxy to service
[Serializable]
public static class ForceToken
{
private static DateTime _sessionDate = DateTime.Now;
private static string _sessionId = string.Empty;
public static string SessionId
{
get { return GetSession(); }
}
private static string GetSession()
Option Explicit
' wbemChangeFlagEnum Setting
const UpdateOnly = 1
const CreateOnly = 2
' HostType
const InProcess = 1
const Isolated = 2
Option Explicit
' wbemChangeFlagEnum Setting
const UpdateOnly = 1
const CreateOnly = 2
' HostType
const InProcess = 1
const Isolated = 2
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<sqlBinding>
<binding name="SqlAdapterBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" maxConnectionPoolSize="100"
encrypt="false" workstationId="" useAmbientTransaction="true"
batchSize="20" polledDataAvailableStatement="" pollingStatement=""
pollingIntervalInSeconds="30" pollWhileDataFound="false" notificationStatement=""
private void btnTestOracle_Click(object sender, EventArgs e)
{
EMPLOYEESRECORDSELECT[] selectRecords = new EMPLOYEESRECORDSELECT[0];
// Initialize WCF client variables
HR_Table_EMPLOYEESClient aaTableClient = null;
try
{
USE [AdventureWorks2008]
GO
/****** Object: StoredProcedure [dbo].[uspGetEmployeeDetail] Script Date: 07/13/2009 20:59:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Steef-Jan Wiggers
-- Create date: 14-09-2009
private void buttonTest_Click(object sender, EventArgs e)
{
//////////////////////////////////////////////////////////////////////
// CREATING THE CLIENT
///////////////////////////////////////////////////////////////////////
Procedures_dboClient client = new Procedures_dboClient("SqlAdapterBinding_Procedures_dbo");
//Windows Authentication