Hi all,
We are using Access Provider extensively in Apps 9 and are about to upgrade to Apps 10. We will have to continue using Access Provider for some time after the upgrade.
Question is, what is the best way to set it up. It is working if I change the address to:
https://xx.xx:48080/main/compatibility/clientgateway
and include (C#):
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
But is that the right way doing it?
Code example (aps.net):
using Ifs.Fnd.AccessProvider;
using Ifs.Fnd.AccessProvider.PLSQL;
using Ifs.Fnd.Data;
using System;
using System.Net;
public partial class WebIfsTest01 : System.Web.UI.Page
{
public static string serverUrl = "https://xx.xx:48080/main/compatibility/clientgateway";
public static string username = "xx";
public static string password = "xx";
public static string locale = "en-US";
protected void Page_Load(object sender, EventArgs e)
{}
protected void Button1_Click(object sender, EventArgs e)
{
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
var fndConnection = new FndConnection(serverUrl, username, password);
string stSQL = "select Part_no from inventory_part where part_no= '15000'";
FndPLSQLSelectCommand cmd = new FndPLSQLSelectCommand(fndConnection, stSQL);
FndDataTable dt = new FndDataTable();
dt = cmd.ExecuteReader();
foreach (FndDataRow row in dt.Rows)
{
lblInfo.Text = ((FndAttribute)row["Part_no"]).ToString();
}
}
private static FndConnection Cnn()
{
var fndConnection = new FndConnection(serverUrl, username, password);
fndConnection.InteractiveMode = false;
fndConnection.UseCompression = false;
fndConnection.Locale = locale;
return fndConnection;
}
}