This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
' wbemChangeFlagEnum Setting | |
const UpdateOnly = 1 | |
const CreateOnly = 2 | |
' HostType | |
const InProcess = 1 | |
const Isolated = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
' wbemChangeFlagEnum Setting | |
const UpdateOnly = 1 | |
const CreateOnly = 2 | |
' HostType | |
const InProcess = 1 | |
const Isolated = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnTestOracle_Click(object sender, EventArgs e) | |
{ | |
EMPLOYEESRECORDSELECT[] selectRecords = new EMPLOYEESRECORDSELECT[0]; | |
// Initialize WCF client variables | |
HR_Table_EMPLOYEESClient aaTableClient = null; | |
try | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void buttonTest_Click(object sender, EventArgs e) | |
{ | |
////////////////////////////////////////////////////////////////////// | |
// CREATING THE CLIENT | |
/////////////////////////////////////////////////////////////////////// | |
Procedures_dboClient client = new Procedures_dboClient("SqlAdapterBinding_Procedures_dbo"); | |
//Windows Authentication |