IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  .net RPC logon problem

    Posted Thu March 11, 2004 06:43 PM

    Hi,

    I am making a call to a Nat Subprogram via RPC and .net wrapper using the logon opcion

    The RPC Server has LOGONRQ=ON

    My .net code look like this


    #region Constructor(s) etc for LIBRARY ‘SISAUT’

    public bool NaturalLogon=true;
    public SISAUT() : base() {}
    public SISAUT(Broker broker) : base ( broker ) {}
    public SISAUT(Service service) : base ( service ) {}

    #endregion
    #region Method/Function for LIBRARY ‘SISAUT’ PROGRAM ‘ARBAW050’

    [Program(“ARBAW050”)]

    public void Arbaw050(
    [SendAs(IdlType.A, Length=13f, Dim=1f, Dim2=200f)][Out] out StringBuilder[,] arregl
    ){
    arregl = new StringBuilder[1,200] ;

    service.UserIDAndPassword(“PRAMM6”,“XML001”);
    service.Send(
    this.GetType().GetMethod(“Arbaw050”),
    arregl
    );
    }

    #endregion

    and as a result I get the following error


    10010012: Authorization or initialization failed. Lib=SYSRPC,Pgm=ARBAW050,(NATURAL Error Info: Program=ARBAW050,Error=6975,Line=9999,Status=O,Level=01).



    Any clue will be appreciate…


    #webMethods
    #EntireX
    #Mainframe-Integration


  • 2.  RE: .net RPC logon problem

    Posted Fri March 12, 2004 12:13 PM

    Hi Euridici,

    I’m trying to reproduce the problem and am following a trace. Are you using conversational calls?

    Regards, Dietmar.


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 3.  RE: .net RPC logon problem

    Posted Fri March 12, 2004 03:49 PM

    Hi Euridici,

    it seems like there is missing a

    service.NaturalLogon = true;

    statement in your code.

    Regards, Dietmar.


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 4.  RE: .net RPC logon problem

    Posted Fri March 12, 2004 04:54 PM

    Ups… You are totally right

    Now it works

    Thanks Mr. Dietmar.


    #EntireX
    #Mainframe-Integration
    #webMethods