Я настроил порт приема с помощью С#. Ниже приведен код, и все в порядке. Но мне нужно настроить вкладку аутентификации и предоставить данные ИМЯ ПОЛЬЗОВАТЕЛЯ и ПАРОЛЬ. Может ли кто-нибудь помочь мне в этом.
ReceivePort myreceivePort = app.AddNewReceivePort(false);
//Note that if you dont set the name property for the receieve port,
//it will create a new receive location and add it to the receive //port.
myreceivePort.Name = "MyPort";
//Create a new receive location and add it to the receive port
ReceiveLocation myreceiveLocation = myreceivePort.AddNewReceiveLocation();
foreach(ReceiveHandler handler in root.ReceiveHandlers)
{
if(handler.TransportType.Name == "FILE")
{
myreceiveLocation.ReceiveHandler = handler;
break;
}
}
//Associate a transport protocol and URI with the receive location.
foreach (ProtocolType protocol in root.ProtocolTypes)
{
if(protocol.Name == "FILE")
{
myreceiveLocation.TransportType = protocol;
break;
}
}
myreceiveLocation.CustomData
// new BizTalk application
myreceiveLocation.Address = "C:\\test\\*.txt";
//Assign the first receive pipeline found to process the message.
foreach(Pipeline pipeline in root.Pipelines)
{
if(pipeline.Type == PipelineType.Receive)
{
myreceiveLocation.ReceivePipeline = pipeline;
break;
}
}
//Enable the receive location.
myreceiveLocation.Enable = true;
myreceiveLocation.FragmentMessages = Fragmentation.Yes;//optional property
myreceiveLocation.ServiceWindowEnabled = false; //optional pr