Developer Programs

Learn

Docs

PSSrch

API Reference > PSSrch
SoapActionn/a
Input NamePSSrch
Output NamePSSrchResponse
Input Namespacen/a
Group NameXperience
ContainerXP_MsgBus.xsd
PSSrch.cs
private void ButtonPSSrchClick(object sender, RoutedEventArgs e)
{
    var record = new PSSrchRq_MType()
    {
        JESSrchMsgRqHdr = Helper.JesSrchMsgRqHeader(30),
        PSApp = Application.ApplicationId,
        PSFinInst = Constants.FinInst,
        PSKey = Environment.UserName,
        PSProd = Application.ApplicationId,
        PSSecKey = string.Empty,
        PSUsr = Environment.UserName,
        PSConsumerEnv = “2013-TEST”
    };

    int max = 3;

    Helper.FillHeader(record, max);

    var callback = this.messageBus.Send(record);
    var errors = Helper.CallbackErrors(callback, "ButtonPSSrchClick");
    if (!string.IsNullOrWhiteSpace(errors))
    {
        this.UpdateListbox(errors);
    }
    else
    {
        try
        {
            this.OnPSSrchRs(callback.WaitForResponse(TimeSpan.FromSeconds(30)));
        }
        catch (Exception ex)
        {
            this.UpdateListbox("ButtonPSSrchClick exception:  " + ex.Message);
        }
    }
}

Did this page help you?

Last updated Mon Dec 9 2024