public static void GetFundInstructions()
//Use the GetFundInstructions method
var client = new BFSServiceReference.bfsapiSoapClient();
var credentials = new BFSServiceReference.Credentials()
{
{UserName = bfsusername, //Username of administrative user in your instance of BFS
var bindingPassword = new BasicHttpBinding();
binding.MaxReceivedMessageSize = Int32.MaxValue;
bfspassword, //Password of the administrative user in your instance of BFS
};
var instructions = client.GetFundInstructions(new BFSServiceReference.GetFundInstructionRequest()
{
Credentials = credentials,
var targetidentify = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
bfsidentifier, //Identifier is a unique token for your instance of BFS
var reqArgs = new bfsapiBFSServiceReference.GetFundInstructionRequestGetFundInstructionArgs();
{
req.CredentialsBrickIds = new []
bfsapi.Credentials {
new Guid("ea3f658e-28f7-46b9-a45e-99b0f2e1a1ff"),
{ }
},
UserNameFields = "user",
new BFSServiceReference.GetFundInstructionFields()
{
BrickId = true, Password = "password"
ExecutionInterfaceId = true,
}; PhysicalDeliveryIndicator = true,
req.identify = "Identifystring"; FundInstructionNo = true,
req.ArgsStatusKey = newtrue,
bfsapi.GetFundInstructionArgs ExternalFundBatchOrder = true,
{ Instrument = true,
FundInstructionNosInstructionTypeKey = true,
new[] { "100119", "100052" } RequestedNAVCurrency = true,
}; RequestedSettlementCurrency = true,
req.FieldsCashAmount = newtrue
bfsapi.GetFundInstructionFields() },
});
foreach (var c in instructions.Result)
{
{ Console.WriteLine(c.BrickId + ", "
+ CashAmount =truec.ExecutionInterfaceId + ", "
+ c.PhysicalDeliveryIndicator + ", "
ExternalFundBatchOrder =true, + c.FundInstructionNo + ", "
+ InstructionTypeKeyc.StatusKey =+ true", "
+ c.ExternalFundBatchOrder + ", "
FundInstructionNo = true + c.Instrument + ", "
}; + c.InstructionTypeKey + ", "
var resp =+ target.GetFundInstructions(req);c.RequestedNAVCurrency + ", "
+ c.RequestedSettlementCurrency + ", "
+ c.CashAmount);
} |